Re: Difference Between \lyricsto and associatedVoice With Melody Rhythm
Hi Matthew, You wrote:- +++ But this seems to work as expected: \new Staff { \new Voice = unsung \relative { a'1 \new Voice = sung { b4. b8 b4. b8 } e1 f1 } } \new Lyrics \lyricsto sung { A B C D } +++ In this file (below) I have tried to follow your example using predefined expressions - not having the music etc explicitly in the score statement. Everything works as expected until I started adding more unsung/sung sections when the subsequent words became shifted downwards at each appearance. Apparently LP is seeing them as new Verses(?). Is there a simple solution to allow each occurrence of words to be aligned, or must one use extra-offsets and trial and error to align them? Note also that placing bar-checks in the music expressions gives strange values. Regards, Bill. ++ \version 2.14.2 wordsA = \lyricmode { Aa B C A } wordsB = \lyricmode { C D E C } wordsC = \lyricmode { E F G E } unsungmelodyA = \relative c'' %Bar checks in this section give strange, varying values { a1 } sungmelodyOne = \relative c'' { a4 b c a } unsungmelodyB = \relative c' { f1 } sungmelodyTwo = \relative c' { c4 d e c } unsungmelodyC = \relative c'' { g1 } sungmelodyThree = \relative c'' { e,4 f g e } \score { \new Staff { \new Voice = unsung { \unsungmelodyA } \new Voice = sungA { \sungmelodyOne } \new Voice = unsung { \unsungmelodyB } \new Voice = sungB { \sungmelodyTwo } \new Voice = unsung { \unsungmelodyC } \new Voice = sungC { \sungmelodyThree } } \new Lyrics \lyricsto sungA \wordsA \new Lyrics \lyricsto sungB \wordsB \new Lyrics \lyricsto sungC \wordsC } \layout { } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Difference Between \lyricsto and associatedVoice With Melody Rhythm
see http://old.nabble.com/wrong-alignment-when-repeating-music-with-different-text-on-one-line-ts32622828.html#a32622828 for a related problem. this has not been treated as a bug report. at least there seems to be a solution to this: use explicitly named contexts before actually filling voices and lyrics: \score { \new Staff = A \new Lyrics = A \context Staff { \new Voice = unsung { \unsungmelodyA } \new Voice = sungA { \sungmelodyOne } \new Voice = unsung { \unsungmelodyB } \new Voice = sungB { \sungmelodyTwo } \new Voice = unsung { \unsungmelodyC } \new Voice = sungC { \sungmelodyThree } } \context Lyrics = A \lyricsto sungA \wordsA \context Lyrics = A \lyricsto sungB \wordsB \context Lyrics = A \lyricsto sungC \wordsC } does this do what you expect!? Eluze ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Difference Between \lyricsto and associatedVoice With Melody Rhythm
On 07/11/11 10:32, eluze wrote: see http://old.nabble.com/wrong-alignment-when-repeating-music-with-different-text-on-one-line-ts32622828.html#a32622828 for a related problem. this has not been treated as a bug report. at least there seems to be a solution to this: use explicitly named contexts before actually filling voices and lyrics: does this do what you expect!? Eluze On 07/11/11 10:32, eluze wrote: \score { \new Staff = A \new Lyrics = A \context Staff { \new Voice = unsung { \unsungmelodyA } \new Voice = sungA { \sungmelodyOne } \new Voice = unsung { \unsungmelodyB } \new Voice = sungB { \sungmelodyTwo } \new Voice = unsung { \unsungmelodyC } \new Voice = sungC { \sungmelodyThree } } \context Lyrics = A \lyricsto sungA \wordsA \context Lyrics = A \lyricsto sungB \wordsB \context Lyrics = A \lyricsto sungC \wordsC } Many thanks! I will have to do more to get the idea of 'contexts' firmly placed in my head! :) Still no obvious reason why barcheck numbers are so unusual... Regards Bill ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Difference Between \lyricsto and associatedVoice With Melody Rhythm
On 7/11/2011, at 9:50 am, Bill Mooney wrote: In this file (below) I have tried to follow your example using predefined expressions - not having the music etc explicitly in the score statement. Everything works as expected until I started adding more unsung/sung sections when the subsequent words became shifted downwards at each appearance. Apparently LP is seeing them as new Verses(?). Is there a simple solution to allow each occurrence of words to be aligned, or must one use extra-offsets and trial and error to align them? My immediate reaction was to keep it simple by minimising the number of voices: \score { \new Staff { \new Voice = unsung { \unsungmelodyA } \new Voice = sung { \sungmelodyOne } \context Voice = unsung { \unsungmelodyB } \context Voice = sung { \sungmelodyTwo } \context Voice = unsung { \unsungmelodyC } \context Voice = sung { \sungmelodyThree } } \new Lyrics \lyricsto sung {\wordsA \wordsB \wordsB } } Unfortunately, this completely omits all except the first set of words, for reasons that are not apparent to me. Best wishes, Matthew ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Difference Between \lyricsto and associatedVoice With Melody Rhythm
hi Bill I will have to do more to get the idea of 'contexts' firmly placed in my head! :) don't try to hard with this 'buggy' context! Still no obvious reason why barcheck numbers are so unusual... can't see what you mean - example!? Eluze ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Difference Between \lyricsto and associatedVoice With Melody Rhythm
On 07/11/11 17:14, eluze wrote: hi Bill I will have to do more to get the idea of 'contexts' firmly placed in my head! :) don't try to hard with this 'buggy' context! Still no obvious reason why barcheck numbers are so unusual... can't see what you mean - example!? Eluze Hello again, For some reason which eludes me completely the barchecks now show exactly what one would expect (1/1 in each piece of music). I'll just put it into the 'go figure' basket! :) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Difference Between \lyricsto and associatedVoice With Melody Rhythm
On 07/11/11 16:57, Matthew Collett wrote: On 7/11/2011, at 9:50 am, Bill Mooney wrote: In this file (below) I have tried to follow your example using predefined expressions - not having the music etc explicitly in the score statement. Everything works as expected until I started adding more unsung/sung sections when the subsequent words became shifted downwards at each appearance. Apparently LP is seeing them as new Verses(?). Is there a simple solution to allow each occurrence of words to be aligned, or must one use extra-offsets and trial and error to align them? My immediate reaction was to keep it simple by minimising the number of voices: \score { \new Staff { \new Voice = unsung { \unsungmelodyA } \new Voice = sung { \sungmelodyOne } \context Voice = unsung { \unsungmelodyB } \context Voice = sung { \sungmelodyTwo } \context Voice = unsung { \unsungmelodyC } \context Voice = sung { \sungmelodyThree } } \new Lyrics \lyricsto sung {\wordsA \wordsB \wordsB } } Unfortunately, this completely omits all except the first set of words, for reasons that are not apparent to me. Best wishes, Matthew Hi Matthew, The revised syntax provided by Eluze fixes the way the words are aligned. (See one of the other posts in this thread.) All I have to do now is figure out some real-world uses for this construct - any ideas? :) Would it be possible for me to contact you directly by phone - since we both seem to be here in NZ? Reply off-list if you think so. Regards Bill ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Difference Between \lyricsto and associatedVoice With Melody Rhythm
Hello, Thanks for all you input. That the different 'nesting' with \lyricsto achieves a correct result is good to know, unfortunately time constraints forced me to go the hard way to get the score ready in time ;-) Thanks to you all and Cheers, Christian ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Difference Between \lyricsto and associatedVoice With Melody Rhythm
Hello, Continuing from a previous example, I have been instructed to use 'associatedVoice' instead of \lyricsto to avoid problem with the continuation of the melody after the lyrics have ended. But now I run into a peculiar problem: If more complex melodies are used, the alignment of lyrics does not work. Example (also tested with 2.15.16): \version 2.14.2 \new Staff { \new Voice = melody \relative { a'1 \context Voice = melody { b4. b8 b4. b8 } \context Lyrics = lyr \with {associatedVoice = melody} \lyricmode { A B C D } %\new Lyrics \lyricsto melody { A B C D } e1 f1 } } If I use 'associatedVoice', lyrics A, B and C are printed below the first note, over each other. D is printed below the second note. This does not happen if only quarter notes are used in the melody. \lyricsto works fine, but for reasons pointed out earlier, does not correctly allow the melody e1 f1 to continue after the lyrics. Thanks for your consideration, Christian ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Difference Between \lyricsto and associatedVoice With Melody Rhythm
Hello, Please ignore my previous post. It seems that without \lyricsto, I'm stuck to entering the lyrics' durations manually. *Sigh* :-) Cheers, Christian ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Difference Between \lyricsto and associatedVoice With Melody Rhythm
On 4/11/2011, at 4:04 am, Christian Eitner wrote: \version 2.14.2 \new Staff { \new Voice = melody \relative { a'1 \context Voice = melody { b4. b8 b4. b8 } \context Lyrics = lyr \with {associatedVoice = melody} \lyricmode { A B C D } %\new Lyrics \lyricsto melody { A B C D } e1 f1 } } If I use 'associatedVoice', lyrics A, B and C are printed below the first note, over each other. D is printed below the second note. This does not happen if only quarter notes are used in the melody. \lyricsto works fine, but for reasons pointed out earlier, does not correctly allow the melody e1 f1 to continue after the lyrics. For a variant on the \lyricsto wierdness: \new Staff { \new Voice = unsung \relative { a'1 \new Voice = sung { b4. b8 b4. b8 } \new Lyrics \lyricsto sung { A B C D } e1 f1 } } The last two notes now do appear, but wrongly spaced. But this seems to work as expected: \new Staff { \new Voice = unsung \relative { a'1 \new Voice = sung { b4. b8 b4. b8 } e1 f1 } } \new Lyrics \lyricsto sung { A B C D } Best wishes, Matthew ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Difference Between \lyricsto and associatedVoice With Melody Rhythm
Matthew Collett m_coll...@ihug.co.nz writes: For a variant on the \lyricsto wierdness: \new Staff { \new Voice = unsung \relative { a'1 \new Voice = sung { b4. b8 b4. b8 } \new Lyrics \lyricsto sung { A B C D } e1 f1 } } The last two notes now do appear, but wrongly spaced. My guess would be that when the inner contexts disappear, a corresponding iterator gets rewired and then typesets the e1 as lyrics to the f1 (or vice versa). Of course, it needs to move it for that. Worth a bug report. -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Difference Between \lyricsto and associatedVoice With Melody Rhythm
Hello, On Thu, Nov 3, 2011 at 9:50 PM, David Kastrup d...@gnu.org wrote: Matthew Collett m_coll...@ihug.co.nz writes: For a variant on the \lyricsto wierdness: ... My guess would be that when the inner contexts disappear, a corresponding iterator gets rewired and then typesets the e1 as lyrics to the f1 (or vice versa). Of course, it needs to move it for that. Worth a bug report. et voila http://code.google.com/p/lilypond/issues/detail?id=2010 Although wasn't sure if the title of the bug is technically accurate enough... feel free to modify it. -- -- James ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Difference Between \lyricsto and associatedVoice With Melody Rhythm
Greetings Christian, After reading your post and the replies from Matthew Collett, David Kastrup, and Peekay Ex, I thought I would try to simplify what I think you're trying to do. The following gives two lines of music, one showing a trivial example, and the other showing my attempt to do the same thing using defined terms for words and music. In the second part, using bar checks shows strange values compared to those obtained in the first part. Whether this is a symptom of the underlying problem I don't know. I don't have any skills in programming to let me delve into that! Note the empty bar after the lyrics in the second part. I hope this is of some help. Regards Bill +++ \version 2.14.2 %%{ %words and music for First score firstwords = \lyricmode { q w e r } melodya = \relative c'' %All the barchesks give 1/1, as expected { a1 | b4 b4 a4 b4 | e,1 | f1 | g2 a | } \score { %first score \new Staff { \new Voice = singer { \melodya } \new Lyrics \lyricsto singer \firstwords } } %} %words and music for Second score secondwords = \lyricmode { z x c v } secondmelodya = \relative c'' %Bar checks in this section give strange, varying values { a1 } secondmelody = \relative c'' { a4 b c a } secondmelodyb = \relative c'' { e,1 f1 | g1 | } \score { %second score \new Staff { \new Voice = unsunga { \secondmelodya } \new Voice = singer { \secondmelody } \new Lyrics \lyricsto singer \secondwords \new Voice = unsungb { \secondmelodyb } } } \layout { } +++ ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user