[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Box around MeasureCounter
From: |
David Kastrup |
Subject: |
Re: Box around MeasureCounter |
Date: |
Tue, 23 Nov 2021 14:32:25 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Aaron Hill <lilypond@hillvisions.com> writes:
> On 2021-11-22 11:24 am, Rajesh Baskar wrote:
>> I had another question. The MeasureCounter boxify function does not
>> work if we change the staff to Rhythmic staff.
>
> You need to scope the grob to the appropriate context. \boxifying
> something within Staff only affects Staff. If you need it to work for
> RhythmicStaff, just be more specific:
>
> %%%%
> \new Voice {
> \boxify RhythmicStaff.MeasureCounter
> ...
> }
>
> %% ...or... %%
>
> \new RhythmicStaff
> \with { \boxify MeasureCounter }
> { ... }
>
> %% ...or... %%
>
> \layout {
> \context {
> \RhythmicStaff
> \boxify MeasureCounter
> }
> }
> %%%%
You can also do this less specifically:
\layout {
\boxify Staff.MeasureCounter
}
should affect all contexts that respond to an _alias_ of "Staff" which
includes RhythmicStaff .
--
David Kastrup