Urs Liska <[email protected]> writes:

> Hi all,
>
> I want to implement a function to display a modified barnumber in a box.
> This is (can be) used in sketch edition to indicate that the barnumber
> of the printed sketch doesn't match the one in the final composition.
>
> This is what I came up with so far:
>
> \version "2.19.37"
>
> \layout {
>   \context {
>     \Score
>     \override BarNumber.break-visibility = ##(#t #t #t)
>   }
> }
>
> offsetBarnumber =
> #(define-music-function (offset)(integer?)
>    #{
>      \override Score.BarNumber.stencil
>         = #(make-stencil-boxer 0.1 0.25 ly:text-interface::print)
>    #})

Which takes its input from the 'text property.  Maybe override that
(instead?).

> PS: I don't seem to find how I can use the newer syntax for \override so
> I don't have to use #{ #}
> (override) is not defined so it must be some different approach

\propertyOverride is a regular music function, as opposed to \override
which has special syntax hardwired into the parser.

-- 
David Kastrup

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to