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
> somewhere...

\once certainly works:

%%%%  SNIPPET BEGINS
\version "2.25.11"

\paper { indent = 0\in left-margin = 1\in }

music = {
  \override Staff.InstrumentName.padding = 2
  \set Staff.shortInstrumentName = "actual"
  c'1 \break c'1
  \once \set Staff.shortInstrumentName = "temp" \break
  c'1 \break
  c'1
}

\score { \music }
%%%%  SNIPPET ENDS

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

Cheers,
Kieren.
______________________________________________

My work day may look different than your work day. Please do not feel obligated 
to read or respond to this email outside of your normal working hours.


Reply via email to