Hi Ken, Hi Paul, The root of the problem is your use of << ... \\ ... >>. Basically << ... >> marks that the contained music should be placed simulataneously instead of consecutively (which would be the purpose of { ... }). But this will not put the music in different voices. To do so one has to explicitely say << \new Voice ... \new Voice ... >>. Since this is quite a bit to write we have the << ... \\ ... \\ ... ... >> syntax, which automatically creates voices an orders them like voice 1 (top), voice 2 (bottom), voice 3 (second from top), ...
Note we can also use the \voices function to specify the order of these voices! So here is where the problem lies: You do have a staff with two voices lh_one as Voice 1 and lh_two as Voice 2. But then Voice 2 has this part << { fs,1( | f,2) e, | } \\ { s8\sustainOn s2. s8\sustainOff | s8\sustainOn s2. s8\sustainOff | } >> which again creates two Voices, the top of which will be Voice 1 and thus clash with the actual Voice 1. Note that in your case you do not actually want new Voices, because the second line simply specifies pedal markings and no notes, so it suffices to specify << { fs,1( | f,2) e, | } { s8\sustainOn s2. s8\sustainOff | s8\sustainOn s2. s8\sustainOff | } >> instead, which would place both lines simultaneously without leaving the previous Voice. But in case you actually need two Voices you’d want the Voice to split into Voice 4 and Voice 2, not Voice 1 and Voice 2, so you’d need to do \voices 4,2 << ... \\ ... >> Cheers, Valentin Am Donnerstag, 30. Juni 2022, 23:59:33 CEST schrieb Kenneth Wolcott: > Hi Paul; > > Thank you. > > It looks like somewhere I had jumped to conclusions about engraving > polyphony in Lilypond and misled myself for about a year now. > > This not only works better but the code looks much less cumbersome, > more succinct. > > Interesting that, until now, my syntax actually worked. > > Ken > > On Thu, Jun 30, 2022 at 1:31 PM Paul Hodges <p...@cassland.org> wrote: > > Change: > > \new Staff << { \lh_one } \\ { \lh_two } >> > > > > to: > > \new Staff << \lh_one \lh_two >> > > > > and you will see a big improvement. > > > > Paul > > > > > > From: Kenneth Wolcott <kennethwolc...@gmail.com> > > To: Lily Pond <lilypond-user@gnu.org> > > Sent: 30/06/2022 20:57 > > Subject: warning: adding note head to incompatible stem (type = 1/1) > > > > HI; > > > > I am now engraving a Cello+Piano arrangement of the last song (no > > > > lyrics) "None but the Lonely Heart" of Op. 6 of Tchaikovsky. > > > > https://en.wikipedia.org/wiki/None_but_the_Lonely_Heart_(Tchaikovsky) > > > > The left hand notes have polyphony. > > > > The whole note in one measure and the half notes in the following > > > > measure each conflict with an eighth note rest in the other voice. > > > > I am not (yet) explicitly using voices, perhaps that is my problem? > > > > How do I successfully engrave this with Lilypond 2.22.2? > > > > I also receive the following warning/hint: "warning: maybe input > > > > should specify polyphonic voices". > > > > I have attached the full pdf of what I am engraving, my engraving and > > the Lilypond source I wrote. > > > > Thanks, > > Ken Wolcott
signature.asc
Description: This is a digitally signed message part.