Richard Shann <rich...@rshann.plus.com> writes:

> On Sun, 2017-06-25 at 18:54 +0300, Ivanov Dmitry wrote:
>> > move it to a layout block:
>> >
>> > \layout {  \omit Fingering }
>> 
>> Great. Would it be better to move:
>> 
>> \once \override Staff.TimeSignature #'stencil = ##f
>> \override Staff.Clef #'stencil = ##f
>> 
>> to the layout block as well? Or keep it as is?
>
> I'd like to know the answer to this as well, I don't know what I'm doing
> - just juggling stuff around until it works - a very bad way to achieve
> robust and readable code :(

\layout { \omit Fingering }

is equivalent to

\layout { \omit Bottom.Fingering }

and omits Fingering in _any_ context with a Bottom alias.  It's probably
more targeted to write

\layout {
  \context { \Voice
    \omit Fingering
  }
}

which specifically just addresses Voice contexts.  In a similar vein,
one can write

\layout {
  \context { \Staff
    \omit TimeSignature
    \omit Clef
  }
}

to target just Staff contexts while

\layout {
  \omit Staff.TimeSignature
}

will address all contexts with a Staff alias (which includes TabStaff,
VaticanaStaff and others).

-- 
David Kastrup

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to