Kieren MacMillan <[email protected]> writes:

> Hi David,
>
>> But if you have to close the group anyway with a brace, where is the
>> point in not just doing a music function doing
>> 
>> { \temporary $xxx ... \undo $xxx }
>
> Wouldn’t one have to create a separate music function for each possible tweak?
> If not, then there is, as you say, no point.

ranged =
#(define-music-function (overrides music) (ly:music? ly:music?)
   #{ \temporary $overrides #music \undo $overrides #})

\ranged \override xxx.xxx = ... { c d e f }

\ranged { \override ...
          \override ...
        }
{
  c d e f
}

-- 
David Kastrup

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to