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
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
>> 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
>>
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:
> > 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`
> 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
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)?
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
>> 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
>>
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
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...
11 matches
Mail list logo