Re: How to tie the last note of one variable to the first note of another variable?
On 24 January 2011 07:53, Jürgen Ibelgaufts juri...@gmx.de wrote: hi, maybe I'm missing something. I did not try your solution, but I suppose it works fine. but how would you append lyrics? \addlyrics gives a syntax error (unexpected \addlyrics), and \lyricsto requires different named voice contexts in which I could not get your solution to work. Why different named voice contexts? I use a single voice, I can use a single Lyrics \lyricsto . This works fine: \version 2.13.46 partOne = \relative c' { c4 e g e~ } partTwo = \relative c' { e1 c4 e g e~ e1 } versePartOne = \lyricmode { ta ra ta taa } versePartTwo = \lyricmode { tu ru tu tuu } \score { \new Staff { \tempo 4 = 120 \new Voice = melody { \partOne \partTwo } } \new Lyrics \lyricsto melody { \versePartOne \versePartTwo } \midi { } \layout {} } Cheers, Xavier -- Xavier Scheuer x.sche...@gmail.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to tie the last note of one variable to the first note of another variable?
Hi Xavier, I gave it a try and it seems that my thoughts were too complicated, your code looks very clean. But... in my case having \voiceOne and \voiceTwo and having them printed in different colors, things get confusing very quickly, and it seems that I still can't omit having several Voices. Many thanks for your advice anyway, it helps me getting rid of many unnecessary lines of code. Cheers Jürgen -- View this message in context: http://old.nabble.com/How-to-tie-the-last-note-of-one-variable-to-the-first-note-of-another-variable--tp30737881p30748073.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to tie the last note of one variable to the first note of another variable?
Hi, you may tie the e note in partOne to a e1*0 note, like this: partOne = \relative c' { c4 e g e~ e1*0 } I did not yet understand why this works, but it does, even in more complex situations like ties across voices. Note that the e1*0 note must have the same value as the e1 note in partTwo. Earlier on, I got advice from this forum to either move the tieEngraver from voice context to staff context. This works, but has side effects if you have parallel voices -- I could not manage having two voices printed in different colors, the ties would always print in the same color. The other solution was adding hidden notes with \hideNotes, with other side effects. Cheers Jürgen Disc Magnet wrote: partOne = \relative c' { c4 e g e~ } partTwo = \relative c' { e1 c4 e g e~ e1 } \score { \new PianoStaff \set PianoStaff.midiInstrument = acoustic grand \new Staff { \tempo 4 = 120 \partOne \partTwo } \midi { } \layout {} } I expect the last e of partOne and first e of partTwo to be tied together. However, it doesn't happen so. What is the right way to do this? ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user -- View this message in context: http://old.nabble.com/How-to-tie-the-last-note-of-one-variable-to-the-first-note-of-another-variable--tp30737881p30740914.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to tie the last note of one variable to the first note of another variable?
On 22 January 2011 20:07, James Bailey derhindem...@googlemail.com wrote: I haven't checked it, but they're probably in different voice contexts. Possible explicity doing a \new Voice = first and \context Voice = first where appropriate may solve the problem. Yes, or simply putting all in a \new Voice works: \version 2.13.46 partOne = \relative c' { c4 e g e~ } partTwo = \relative c' { e1 c4 e g e~ e1 } \score { \new PianoStaff \set PianoStaff.midiInstrument = acoustic grand \new Staff { \tempo 4 = 120 \new Voice { \partOne \partTwo } } \midi { } \layout {} } Cheers, Xavier -- Xavier Scheuer x.sche...@gmail.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to tie the last note of one variable to the first note of another variable?
hi, maybe I'm missing something. I did not try your solution, but I suppose it works fine. but how would you append lyrics? \addlyrics gives a syntax error (unexpected \addlyrics), and \lyricsto requires different named voice contexts in which I could not get your solution to work. Cheers Jürgen Xavier Scheuer wrote: On 22 January 2011 20:07, James Bailey derhindem...@googlemail.com wrote: I haven't checked it, but they're probably in different voice contexts. Possible explicity doing a \new Voice = first and \context Voice = first where appropriate may solve the problem. Yes, or simply putting all in a \new Voice works: \version 2.13.46 partOne = \relative c' { c4 e g e~ } partTwo = \relative c' { e1 c4 e g e~ e1 } \score { \new PianoStaff \set PianoStaff.midiInstrument = acoustic grand \new Staff { \tempo 4 = 120 \new Voice { \partOne \partTwo } } \midi { } \layout {} } Cheers, Xavier -- Xavier Scheuer x.sche...@gmail.com ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user -- View this message in context: http://old.nabble.com/How-to-tie-the-last-note-of-one-variable-to-the-first-note-of-another-variable--tp30737881p30746146.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to tie the last note of one variable to the first note of another variable?
\version 2.13.42 partOne = \relative c' { c4 e g e~ } partTwo = \relative c' { e1 c4 e g e~ e1 } \score { \new PianoStaff \set PianoStaff.midiInstrument = acoustic grand \new Staff { \set tieWaitForNote = ##t \tempo 4 = 120 \partOne \partTwo } \midi { } \layout {} } HTH patrick Am 22.01.2011 um 19:24 schrieb Disc Magnet: partOne = \relative c' { c4 e g e~ } partTwo = \relative c' { e1 c4 e g e~ e1 } \score { \new PianoStaff \set PianoStaff.midiInstrument = acoustic grand \new Staff { \tempo 4 = 120 \partOne \partTwo } \midi { } \layout {} } ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How to tie the last note of one variable to the first note of another variable?
On Jan 22, 2011, at 7:24 PM, Disc Magnet wrote: partOne = \relative c' { c4 e g e~ } partTwo = \relative c' { e1 c4 e g e~ e1 } \score { \new PianoStaff \set PianoStaff.midiInstrument = acoustic grand \new Staff { \tempo 4 = 120 \partOne \partTwo } \midi { } \layout {} } I expect the last e of partOne and first e of partTwo to be tied together. However, it doesn't happen so. What is the right way to do this? I haven't checked it, but they're probably in different voice contexts. Possible explicity doing a \new Voice = first and \context Voice = first where appropriate may solve the problem. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user