> > 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...
>
> My Lilypond knowledge is small but have you tried the "\unset"
> command ??

`\unset` restores the default value of a context property, it doesn't
revert a set value.

Example:

```
\relative c'' {
  \set autoBeaming = ##f
  c8 c c c
  \set autoBeaming = ##t
  c8 c c c
  \unset autoBeaming
  c8 c c c
}
```


    Werner

Reply via email to