I have a Chopin piece that I'm engraving and I've run into a problem with some of the close harmonies he writes. He has a chord with both a d-sharp and a d-natural in it. The edition I'm using uses two voices and doesn't merge the two d's (see attached picture). I've tried this in LilyPond but I can't prevent the merging of the two notes (see second attached picture, measure one.) Is there a way to stop LilyPond from merging two notes?
I've asked this question before and one of the suggestions was to use an enharmonic note, in this case e-flat for the d-sharp (see attached, measures two through four). To the pianists reading this: which measure is the least confusing? I've also attached the code I used to create the four measures. -- Knute Snortum
\version "2.24.4" \language "english" \paper { ragged-right = ##t indent = 0 } righthandUpper = \relative { \time 6/8 r16 <d'' f>( q <gs, ds'> q <d' e> \voiceOne e f f ds! ds! e16) | \break \oneVoice r16 <d f>( q <gs, ds'> q <d' e> \voiceOne e f f ef ef e16) | \break \oneVoice r16 <d f>( q <gs, ds'> q <d' e> q <gs, f'> q <d' ef> q <gs, e'>) | \break r16 <d' f>( q <gs, ef'> q <d' e> q <gs, f'> q <d' ef> q <gs, e'>) | } rightHandLower = \relative { \time 6/8 \voiceFour s4. d''16 gs, gs d'! d! gs, | s4. d'16 gs, gs d' d gs, | } \new Staff << \new Voice \righthandUpper \new Voice \rightHandLower >>