[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: \change Staff don't work fine
From: |
Xavier Scheuer |
Subject: |
Re: \change Staff don't work fine |
Date: |
Tue, 13 Sep 2011 17:24:49 +0200 |
On 13 September 2011 17:07, Mario Moles <address@hidden> wrote:
>
> Any idea? Thank's!
>
> [code]
>
That's because you use the << \\ >> construct, which implicitly
creates voices "1" and "2" in *both* staves.
Please use explicitly instantiated voices instead and it should work
fine. See the modified \score block below.
I hope we would have less problem with this when issue #1316
http://code.google.com/p/lilypond/issues/detail?id=1316
will be fixed!
Cheers,
Xavier
%%%% Modified \score block
\score {
\new PianoStaff \with {
instrumentName = "Pf."
} <<
\new Staff = "right" \with {
midiInstrument = "acoustic grand"
} {
<<
\new Voice = "rightOne" {
\voiceOne
\rightOne
}
\new Voice = "rightTwo" {
\voiceTwo
\rightTwo
}
>>
}
\new Staff = "left" \with {
midiInstrument = "acoustic grand"
} {
\clef bass
<<
\new Voice = "leftOne" {
\voiceOne
\leftOne
}
\new Voice = "leftTwo" {
\voiceTwo
\leftTwo
}
>>
}
>>
}
%%%% End
--
Xavier Scheuer <address@hidden>