Sorry Neil, that last reply got sent before I was finshed writing it. This is the code I just tried:
\version "2.11.27" \include "english.ly" upper = \relative c'' { \clef treble \key e \major \time 3/4 \mark "Allegro" ef[d ef f g af ] | % bar 65 g[ bf \grace af16 g8 f ef df ] | % bar 66 \grace bf16 \stemUp cf2 af'4~ | \new Voice { \stemDown cf,2. | } % bar 67,68 af'8[ af gf f bf af ] | gf[bf \grace af16 gf8 f ef df ] | % bar 69 lower = \relative c { \clef bass \key e \major \time 3/4 ef4 ef, r4 | % bar 66 r8 af'8[f d cf af ] | % bar 67 bf,,2. | % bar 68 ef4 r4 r | % bar 69 } \score { \new PianoStaff << \set PianoStaff.instrumentName = "Piano " \new Staff = "upper" \upper \new Staff = "lower" \lower >> \layout { } \midi { } } This new code also does not add the tie even though it is much simpler to write. Cheers, David On 7/27/07, David Fedoruk <[EMAIL PROTECTED]> wrote: > I'd better clarify something which is not apparent in the small > amountof score I've posted here. The top voice is the voice which will > continue as the main voice. The lower one, in this case pops in for > two bars, drops out for a bar completely then re-apears for two bars > at which point the notes are stemmed on one stem. So this is sort of > polyphony where it makes sense at the moment from Scarlattii's point > of view. > > I wasn't sure how to deal with the creation fo new voices when they > were created so often and dissapears just as often. Do new voices have > to be removed or ended? That is why I am doing it this way. > > ------- Code Snip ---------- > > ef[d ef f g af ] | % bar 65 > g[ bf \grace af16 g8 f ef df ]| bar 66 > > > \grace bf16 \stemUp cf2 af'4~ | > \new Voice { \stemDown cf,2. | } % bar 67,68 > > af'8[ af gf f bf af ] | > gf[bf \grace af16 gf8 f ef df ] > | % bar 69 > > > You don't need invisible notes for this kind of situation; just use the > > proper syntax for polyphony, so that the upper voice remains in the main > > voice context: > > > > << { > > \grace bf16 > > \voiceOne %make stems point up for this voice after grace note > > cf2 af'4~ | %tie will continue outside polyphonic section > > } > > \new Voice { %second voice context created without using \\, so > > that first voice isn't in a new context > > \voiceTwo %make stems point down here > > cf,2. | > > } >> > > af'8 %this note is now tied, with stem still pointing up > > \oneVoice %return to default voice behaviour > > af[ gf f bf af ] | > > > > Regards, > > Neil > > > -- > David Fedoruk > B.Mus. UBC,1986 > Certificate in Internet Systems Administration, UBC, 2003 > > > http://recordjackethistorian.wordpress.com > "Music is enough for one's life time, but one life time is not enough > for music" Sergei Rachmaninov > -- David Fedoruk B.Mus. UBC,1986 Certificate in Internet Systems Administration, UBC, 2003 http://recordjackethistorian.wordpress.com "Music is enough for one's life time, but one life time is not enough for music" Sergei Rachmaninov _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user