Updates:
        Labels: -Patch-review Patch-new

Comment #25 on issue 2717 by [email protected]: Implement \single, \omit and \hide
http://code.google.com/p/lilypond/issues/detail?id=2717#c25

Issue 2717: Implement \single, \omit and \hide

\omit StringNumber would be equivalent to
\override StringNumber #'stencil = ##f,

\hide StringNumber would be equivalent to
\override StringNumber #'transparent = ##t

and something like \single\omit StringNumber \3 would be equivalent to
\tweak StringNumber #'stencil ##f \3

\single can, like \once, translate larger override sets like \voiceOne
into a tweak, so you can use things like \single\voiceOne c4 .

The disadvantage of this particular approach is that with
\single\omit StringNumber \3 you still need to be specific about the
grob you want to see erased, even though \3 would sufficiently provide
that information.  It would be conceivable to allow
\single\omit \default \3
for that, by letting \erase \default create something that does not
actually work in music but is understood by \single, but that does not
seem all too satisfactory either.

The advantage is that this makes most overrides in ly/property-init.ly
available as tweaks.

http://codereview.appspot.com/6495135


Reply via email to