How do you get two voices to double the same dotted note in LilyPond?
Goal
Let's say I'm trying to reproduce the simple four-voice example below, where tenor and bass double the G.
Attempt #1
\version "2.18.2" \language "english"
\new PianoStaff <<
\new Staff = "right" \relative c' {
\time 3/2 << {e1 d2 | d1.} \\ {c1 c2 | b1.} >>
} \new Staff = "left" \relative c {
\time 3/2 \clef bass << {a'1 a2 | g1.} \\ {e1 fs2 | g1.} >>
}
>>
LilyPond's default output is unsatisfactory. The dot is too far removed from the left note, which appears to be a whole note instead of a dotted whole.
Attempt #2
\version "2.18.2" \language "english"
\new PianoStaff <<
\new Staff = "right" \relative c' {
\time 3/2 << {e1 d2 | d1.} \\ {c1 c2 | b1.} >>
} \new Staff = "left" \relative c {
\time 3/2 \clef bass << {a'1 a2 | g1.} \\ {e1 fs2 | \once \override NoteColumn.force-hshift = #2.0 g1.} >>
}
>>
Forcing an h-shift fails to correct the issue. I am also unable to tweak the dots individually because LilyPond apparently keeps them in the same DotColumn.
Is there any way to split dots up into multiple DotColumns for notes that sound simultaneously?
Note This is a simplistic example. My actual application is a piano piece where a dotted quarter note appears coincident with a dotted half note. The dot appears too far away from the notehead, so the time value of one of the notes appears to change.
\mergeDifferentlyHeadedOn
may be all you need, if it is clear enough what follows the dotted quarter note. An alternative would be to replace the dotted quarter note with a rest, unless the music really is polyphonic.