lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Show TupletNumber after \hide


From: David Kastrup
Subject: Re: Show TupletNumber after \hide
Date: Tue, 11 Oct 2016 10:26:10 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Simon Albrecht <address@hidden> writes:

> On 11.10.2016 06:26, Mark Mathias wrote:
>> LilyPond Friends,
>>
>> The manuals explain how to hide tuplet numbers, but nowhere could I
>> find an explanation of how to turn them back on. After many
>> experiments, I finally found an easy way to control turning on
>> tuplet numbers after turning them off. The secret was to enclose
>> within curly brackets those tuplets whose number needed to be
>> hidden.
>
> This can’t have been the reason. \once makes the tweak valid for only
> one point of time, after which it will be immediately reverted.
> Additionally, there’s \undo which can be used as a shortcut for the
> corresponding \revert. So these examples both work as expected (at
> least, here they do):
>
> \version "2.19.16"
> m = \relative c' { \tuplet 3/2 { c8 c c } c4 }
> {
>   \m
>   \once\hide TupletNumber \m
>   \m
>   \hide TupletNumber \m \m
>   \undo\hide TupletNumber \m

The proper pairing would be \temporary\hide ... \undo\hide

Otherwise if the default is in the context definitions of the Bottom
context itself, it gets lost.  \temporary\hide leaves the previous
definition on the property stack while overriding it so that one can
revert back to it, using either \undo or an explicit \revert.

-- 
David Kastrup



reply via email to

[Prev in Thread] Current Thread [Next in Thread]