Am 13.07.2008 um 05:52 schrieb Kieren MacMillan:
Hi James,
Here's a perfect reason to use \context Voice instead of — or
rather, in addition to — \new Voice:
Once the Voice context has been created and populated with the
notes, you are then able to "cram the staff switch information"
p.s. For the record, you can also do it in a single command:
\version "2.11.49"
voiceA = \relative
{
c4 d e g,
f e e' d
}
voiceAswitches =
{
s2. \change Staff = "LH" s4
s2 \change Staff = "RH" s2
}
\score
{
\new PianoStaff
<<
\new Staff = "RH"
Hi James,
Is it possible to have staff switches in a separate variable?
I was thinking somthing along the lines of
voiceA = \relative {
c4 d e g,
f e e' d
}
voiceAswitches = {
s2. \change Staff = "LH" s4
s2 \change Staff = "RH" s2
}
\score {
\new PianoStaff
<<
\new Staff