|
From: | Aaron Hill |
Subject: | Re: setting partCombine text at a higher level |
Date: | Tue, 11 May 2021 18:00:47 -0700 |
User-agent: | Roundcube Webmail/1.4.9 |
On 2021-05-11 5:44 pm, Paul Scott wrote:
Greetings, Can the variables? soloText and its companions soloIIText, etc. be set at a higher level than \new Staff so it doesn't have to be repeated for each staff? (Notation Manual 1.5.2)
You can do it more globally in a \layout block if you want it to apply to all staves. Otherwise, put the variable definitions in a \with block that can be referenced on individual staves.
%%%% \version "2.22.0" \layout { \context { \Staff soloText = girl soloIIText = boy aDueText = together } } combineTexts = \with { soloText = cat soloIIText = dog } \new Staff << \partCombine \relative c'' { g4 g r r a2 g } \relative c'' { r4 r a( b) a2 g } >> \new Staff \with \combineTexts << \partCombine \relative c'' { g4 g r r a2 g } \relative c'' { r4 r a( b) a2 g } >> %%%% -- Aaron Hill
[Prev in Thread] | Current Thread | [Next in Thread] |