lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [feature-request] optional duration for temporary


From: David Kastrup
Subject: Re: [feature-request] optional duration for temporary
Date: Wed, 11 Nov 2015 14:10:47 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Kieren MacMillan <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]