Thomas Morley <thomasmorle...@gmail.com> writes:

> This relies on matching context-names, so you have to care about them manually
>
>> quoteChord = #(define-music-function
>
> No need for 'parser location' in music-functions for 2.19.x, you could
> delete them
>
>>     (parser location music)
>>     (ly:music?)
>>     #{
>>       \context ChordNames = "chrds-2"
>>         \quoteDuring "chrds" {
>
> I'd use $music instead, refer to the Extending manual for the difference.
> Although I doubt it makes a difference here, I'm used to be a paranoiac ...
>
>>           \context Staff = "2" { #music }
>>         }
>>     #}
>> )

# is pass-through, $ creates a copy.  Music that is used exactly once is
fine to pass through.

-- 
David Kastrup
My replies have a tendency to cause friction.  To help mitigating
damage, feel free to forward problematic posts to me adding a subject
like "timeout 1d" (for a suggested timeout of 1 day) or "offensive".

Reply via email to