Am 13.11.2014 10:05, schrieb Peter Terpstra:
Dear People,
Found a problem with merging differently headed in the next example:

\version "2.18.2"
\relative c {
   \key d \major
   \clef "treble_8"
   \mergeDifferentlyHeadedOn
   \mergeDifferentlyDottedOn
<< { <a''-2>2 ~ a8<d-4>8<cis-3><a-4> }\\
    { d,,,8 a' <fis'-2><cis'-3> b2 }\\
    { d,,2 s } >>
}

Is there a solution to this?

Yes.
As the documentation says on http://lilypond.org/doc/v2.18/Documentation/notation/multiple-voices.html you have to take extra precautions when there are more than two notes in one note column. Against the example of the manual it doesn't suffice to \shiftOn for the top voice but you have also to do \shiftOff for the third voice in your context.

\version "2.18.2"

\relative c {

\key d \major

\clef "treble_8"

\mergeDifferentlyHeadedOn

% \mergeDifferentlyDottedOn

<<

{ \shiftOn <a''-2>2 ~ a8<d-4>8<cis-3><a-4> }\\

{ d,,,8 a' <fis'-2><cis'-3> b2 }\\

{ \shiftOff d,,2 s }

>>

}


Actually I don't like the output with the shifted a'', but fortunately you can fix that with

\once \override NoteColumn.force-hshift = #0


in before that note. This will move the a'' to another note column but will graphically move it back to the original position.

Best
Urs



Many thanks in advantage.

Peter


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to