Re: nested \set ?

2024-03-26 Thread Werner LEMBERG
Dear Valentin and Aaron, > properties handle this by having internally not a single value, but > a list of values, and temporary overriding simply means adding to > that list. Context properties do currently not allow for this > mechanic, but we could simulate it ourselves: [...] Both of your

Re: nested \set ?

2024-03-25 Thread Valentin Petzel
Hello Werner, properties handle this by having internally not a single value, but a list of values, and temporary overriding simply means adding to that list. Context properties do currently not allow for this mechanic, but we could simulate it ourselves: #(set-object-property! 'details

Re: nested \set ?

2024-03-25 Thread Werner LEMBERG
>> 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 >>

Re: nested \set ?

2024-03-25 Thread Aaron Hill
On 2024-03-25 4:13 am, Jean Abou Samra wrote: No, this doesn't exist OOTB. It could be implemented with a Scheme engraver, but that would probably be overkill, unless for some reason it's really important for what you're trying to do? Here's a simple non-engraver way to potentially get close:

Re: nested \set ?

2024-03-25 Thread Werner LEMBERG
> > 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`

Re: nested \set ?

2024-03-25 Thread Jean Abou Samra
> My Lilypond knowledge is small but have you tried the "\unset" command ?? \unset will simply remove the value. Werner is looking for something that resets the previous value. signature.asc Description: This is a digitally signed message part

Re: nested \set ?

2024-03-25 Thread Jean Abou Samra
Le lundi 25 mars 2024 à 07:31 +, Werner LEMBERG a écrit : > 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)? 

Re: nested \set ?

2024-03-25 Thread Sebastien Richard
12 To: kie...@kierenmacmillan.info Cc: 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 sim

Re: nested \set ?

2024-03-25 Thread Werner LEMBERG
>> 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 >>

Re: nested \set ?

2024-03-25 Thread Kieren MacMillan
Hi Werner, > 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

nested \set ?

2024-03-25 Thread Werner LEMBERG
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...