[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changing *displayed* barnumber
From: |
David Kastrup |
Subject: |
Re: Changing *displayed* barnumber |
Date: |
Thu, 25 Feb 2016 14:02:31 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Urs Liska <address@hidden> 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