Hello,

My Lilypond knowledge is small but have you tried the "\unset" command ??

BR,

-------------------
 Sébastien RICHARD


________________________________
From: lilypond-user-bounces+richardsgjm=hotmail....@gnu.org 
<lilypond-user-bounces+richardsgjm=hotmail....@gnu.org> on behalf of Werner 
LEMBERG <w...@gnu.org>
Sent: Monday, March 25, 2024 11:12
To: kie...@kierenmacmillan.info <kie...@kierenmacmillan.info>
Cc: lilypond-user@gnu.org <lilypond-user@gnu.org>
Subject: Re: nested \set ?


>> LilyPond provides `\temporary` and `\revert` to set a grob property
>> temporarily, and afterwards the value of the grob property is the
>> same as before.
>>
>> Is there a similar possiblity for `\set` (or something usable in
>> Scheme)?  I guess not, but I couldn't find this documented
>> somewhere...
>
> \once certainly works: [...]

Yes, thanks, but this is not what I'm looking after: At the start of
my function (created with `define-music-function`), `\autoBeamOff`
gets called (i.e., the `autoBeaming` context variable is set to
`##t`), and after the function returns the previous value of
`autoBeaming` should be restored.

> Not sure why \temporary wouldn’t/shouldn’t, although I must admit I
> couldn’t find the right incantation…

It doesn't work, I've tested it.  Maybe I made a mistake, though...


    Werner

Reply via email to