|
From: | Lukas-Fabian Moser |
Subject: | Re: Sending around contexts |
Date: | Sat, 21 Nov 2020 21:58:36 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
Hi Kieren,
Question: Can the interface be made into a \tweak-able function, where the parameters are [only] the name of the target context and the music being sent there?
Probably this is too simple, but: In your definition toDyn = #(define-music-function (music1 music2) (ly:music? ly:music?) #{ << #music1 \new Container \new Notes { \change Container = "piano_dynamics" #music2 } >> #})both "Container" and "piano_dynamics" can be replaced by variables (e.g. string?'s passed to a function).
Lukas
[Prev in Thread] | Current Thread | [Next in Thread] |