I could be hallucinating but I think I remember seeing someone post an attempt at an engraver that handles chromatically altered unisons. Might be worth searching back.
On Sat, Dec 7, 2024 at 8:40 PM William Rehwinkel via LilyPond user discussion <lilypond-user@gnu.org> wrote: > Dear Knute, > > Here is the best that I could do...but I'm not sure that this is the > most correct solution or that it will look good in context... > > Thanks, > -William > > % -------------- > \version "2.25.18" > \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 \once \override > Accidental.X-extent = #'(0 . 0) ds! \once \override Accidental.X-extent > = #'(0 . 0) ds! e16) | > } > > rightHandLower = \relative { > \time 6/8 > \voiceFour s4. d''16 gs, gs \once \override Accidental.X-extent = > #'(0 . 0) \once \override NoteColumn.force-hshift = #2 \once \override > Accidental.extra-offset = #'(2.9 . 0) d'! \once \override > Accidental.X-extent = #'(0 . 0)\once \override NoteColumn.force-hshift = > #2 \once \override Accidental.extra-offset = #'(2.9 . 0) d! \once > \override NoteHead.extra-spacing-width = #'(-2 . 0) gs, | > } > > \new Staff << > \new Voice \righthandUpper > \new Voice \rightHandLower > >> > % -------------- > > On 12/7/24 19:09, Knute Snortum wrote: > > 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 > > > > -- > William Rehwinkel (any pronouns) > Juilliard School '26 - Oberlin Conservatory '24 > will...@williamrehwinkel.net - https://williamrehwinkel.net > PGP Public Key: https://ftp.williamrehwinkel.net/pubkey.txt > >