A few days ago I mentioned problems with tweaking the vertical alignment of notes. I've now tried everything I can think of, as well as some suggestions from others, but none of the tweaking works reliably (or at all) if there are more than two voices on a staff.

Ex.1 is a satisfactory rendering, coded in two voices. Ex.2, 3 and 4 are attempts using three voices, all horribly misaligned.

\version "2.14.1"

\pointAndClickOff

\score {
  \new Staff {
    \clef bass \key c \major \time 4/4
    \set Staff.instrumentName = "Ex.1"
    <<
\new Voice { \voiceOne s1 \once \override NoteColumn #'force-hshift = #0.3 e2 \once \override Tie #'Y-offset = #'1.2 f ~ \once \override NoteColumn #'force-hshift = #0.5 f e }
      \new Voice { \voiceTwo <a^~ c_~ f,_~>1 <a c f,> <g c c,> }
    >>
  }
}

\score {
  \new Staff {
    \clef bass \key c \major \time 4/4
    \set Staff.instrumentName = "Ex.2"
    <<
\new Voice { \voiceOne s1 \once \override NoteColumn #'force-hshift = #0.5 e2 f ~ \once \override NoteColumn #'force-hshift = #0.5 f e }
      \new Voice { \voiceTwo a1 ^~ a g }
      \new Voice { \voiceTwo <c f,>1 ~ <c f,> <c c,> }
    >>
  }
}

\score {
  \new Staff {
    \clef bass \key c \major \time 4/4
    \set Staff.instrumentName = "Ex.3"
    <<
\new Voice { \voiceOne s1 \once \override NoteColumn #'force-hshift = #0.5 e2 f ~ \once \override NoteColumn #'force-hshift = #0.5 f e }
      \new Voice { \voiceTwo a1 ^~ a g }
      \new Voice { \voiceFour <c f,>1 ~ <c f,> <c c,> }
    >>
  }
}

\score {
  \new Staff {
    \clef bass \key c \major \time 4/4
    \set Staff.instrumentName = "Ex.4"
    <<
\new Voice { \voiceOne s1 \voiceThree \once \override NoteColumn #'force-hshift = #0.5 e2 f ~ f e }
      \new Voice { \voiceTwo a1 ^~ a g }
      \new Voice { \voiceFour <c f,>1 ~ <c f,> <c c,> }
    >>
  }
}

--
Hilary Snaden

Attachment: test5.pdf
Description: Adobe PDF document

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to