lilypond-user
[Top][All Lists]
Advanced

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

Re: setting partCombine text at a higher level


From: Paul Scott
Subject: Re: setting partCombine text at a higher level
Date: Tue, 11 May 2021 18:16:40 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0

Thank you!  That's perfect.  The somewhat standard names I would use are:

soloText = I

soloIIText = II

I should have mentioned that I always use the unstable version.

Stay safe,

Paul


On 5/11/21 6:00 PM, Aaron Hill wrote:
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



reply via email to

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