Re: Multiple stanzas to selection of melody
Simon Albrecht-2 wrote Am 29.07.2014 01:28, schrieb Marten: Hello Abraham, Simon, Thanks for your solutions and quick replies :) I decided to try to implement Simon's third solution, as it explicitly keeps the melody of the stanzas together with their texts. Ingenious - hadn't thought about a solution like that. I have two question about it though: 1. If I use \addlyrics instead of \new Lyrics for the stanzas, an ambitus will be rendered for the stanza and the refrain *separately* (a layout block activating the ambitus, must of course be added). If I use \new Lyrics, as in your solution, only one ambitus for the entire song is rendered (expected behaviour). Why is this so? I find the question a bit confusing. Looking at Abrahams example (in the answer he wrote) makes me wonder why you use separate voices for refrain and verse. I can’t see any necessity to do so and it contradicts the logic of the music: after all, refrain and stanza are not sung by different singers. If you use two different voices, it’s only natural that each gets an ambitus of its own. What would you expect? 2. If the stanza melody begins with a rest, the text gets aligned under the rest. Why? Please try once more to understand the difference in the mechanisms of my first and second examples: in the one with \addlyric, an association between lyrics and the voice is created and each syllable is associated with one note (thus, rests are skipped). The other way does not use direct relation between lyrics and notes: both are entered separately, with their own durations, and it’s up to you to get the alignment in time correct. Lilypond will print everything at the point of time where you put it, and if a rest and a lyric syllable come at the same point of time, they will be aligned. I hope you tried at least to understand the topic yourself from the lenghty and fully sufficient description in the manuals, to which I pointed you. Sometimes it takes a little time to comprehend, but it will save the time of the friendly persons on this list who help you with real problems. Best regards, Simon ___ lilypond-user mailing list lilypond-user@ https://lists.gnu.org/mailman/listinfo/lilypond-user Simon, I knew I had seen this somewhere and didn't just make it up (as shown in the official docs): http://lilypond.org/doc/v2.18/Documentation/learning/solo-verse-and-two_002dpart-refrain http://lilypond.org/doc/v2.18/Documentation/learning/solo-verse-and-two_002dpart-refrain I think your answer may still be better, by the way, in response to the original question :) Good work, Abraham -- View this message in context: http://lilypond.1069038.n5.nabble.com/Multiple-stanzas-to-selection-of-melody-tp165018p165158.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Multiple stanzas to selection of melody
Jim Long lilypond at umpquanet.com writes: On Mon, Jul 28, 2014 at 07:47:17PM +, Marten wrote: Dear all, Trying to typeset a song I am faced with the following problem for which I can;t find a solution in the manual or snippet repository. I kindly request your help. I'm typesetting a song with one staff, where the refrain comes first and spans multiple lines of notes; after that come 3 stanzas. I'd like the song text to be placed under the stanza melody, but I don't want to add empty lines to the refrain. I'm looking for a solution with one \score block. Can this be done? Marten: Is the attached exaple germane to what you are trying to do? regards, Jim Attachment (test-lyric.ly): text/x-lilypond, 840 bytes Attachment (test-lyric.pdf): application/pdf, 24 KiB ___ lilypond-user mailing list lilypond-user at gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user Yes, Jim, that's what I'm trying to do. However, in your code, with two \new Voice statements, you will break the piece and an ambitus will be displayed at the beginning of each Voice. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Multiple stanzas to selection of melody
tisimst tisimst.lilypond at gmail.com writes: Simon Albrecht-2 wrote Am 29.07.2014 01:28, schrieb Marten: Hello Abraham, Simon, Thanks for your solutions and quick replies :) I decided to try to implement Simon's third solution, as it explicitly keeps the melody of the stanzas together with their texts. Ingenious - hadn't thought about a solution like that. I have two question about it though: 1. If I use \addlyrics instead of \new Lyrics for the stanzas, an ambitus will be rendered for the stanza and the refrain *separately* (a layout block activating the ambitus, must of course be added). If I use \new Lyrics, as in your solution, only one ambitus for the entire song is rendered (expected behaviour). Why is this so? I find the question a bit confusing. Looking at Abrahams example (in the answer he wrote) makes me wonder why you use separate voices for refrain and verse. I can’t see any necessity to do so and it contradicts the logic of the music: after all, refrain and stanza are not sung by different singers. If you use two different voices, it’s only natural that each gets an ambitus of its own. What would you expect? 2. If the stanza melody begins with a rest, the text gets aligned under the rest. Why? Please try once more to understand the difference in the mechanisms of my first and second examples: in the one with \addlyric, an association between lyrics and the voice is created and each syllable is associated with one note (thus, rests are skipped). The other way does not use direct relation between lyrics and notes: both are entered separately, with their own durations, and it’s up to you to get the alignment in time correct. Lilypond will print everything at the point of time where you put it, and if a rest and a lyric syllable come at the same point of time, they will be aligned. I hope you tried at least to understand the topic yourself from the lenghty and fully sufficient description in the manuals, to which I pointed you. Sometimes it takes a little time to comprehend, but it will save the time of the friendly persons on this list who help you with real problems. Best regards, Simon ___ lilypond-user mailing list lilypond-user at https://lists.gnu.org/mailman/listinfo/lilypond-user Simon, I knew I had seen this somewhere and didn't just make it up (as shown in the official docs): http://lilypond.org/doc/v2.18/Documentation/learning/solo-verse-and- two_002dpart-refrain http://lilypond.org/doc/v2.18/Documentation/learning/solo-verse-and- two_002dpart-refrain I think your answer may still be better, by the way, in response to the original question :) Good work, Abraham -- View this message in context: http://lilypond.1069038.n5.nabble.com/Multiple-stanzas-to-selection-of- melody-tp165018p165158.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user at gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user Hello Simon, thanks for your explanation. Yes I do understand the difference between \addlyrics and \new Lyrics. The point is that when I replace one of the \new Lyrics with \addlyrics, that an extra ambitus appears. As I understand it, the ambitus engraver is triggered to restart counting by specifying \addlyrics when more than one Voice is present. Since I could not get this to work for me with a single ambitus appearing, I decided to change to the method of your first example. A bit ugly in my opinion to add two lines with underscores to each stanza in order to skip the refrain, but the result then is correct :) To me this solution is still more pleasantly editing than specifying a duration in the text, but that's a matter of taste, I guess. The solution Abraham pointed to also uses two voices, and for that reason also two ambituses will appear. (I tested this.) [On a sidenote: the problem of adding a text to only a part of a melody could be very smoothly solved if Lilypond provided the option to add a name to a certain part of the melody. The text might then be added as \lyricsto partname.] Anyway: problem solved. Thanks! ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Multiple stanzas to selection of melody
On Thu, Jul 31, 2014 at 08:36:43PM +, Marten wrote: Yes, Jim, that's what I'm trying to do. However, in your code, with two \new Voice statements, you will break the piece and an ambitus will be displayed at the beginning of each Voice. So use the abitus engraver in the Staff context instead of the Voice context: Jim \version 2.19.0 refrain = \lyricmode { Here's the re -- frain. Here's the re -- frain. } verseOne = \lyricmode { This is verse one. This is verse one. } verseTwo = \lyricmode { This is verse two. This is verse two. } verseThree = \lyricmode { This is verse three. This is verse three. } verseFour = \lyricmode { This is verse four. This is verse four. } \score { { \new Voice = refrain { c'4 c'4 c'4 c'4 \break c'4 c'4 c'4 c'4 \break } \new Voice = verse { g'4 g'4 g'4 g'4 \break g'4 g'4 g'4 g'4 \break } } \new Lyrics \lyricsto refrain \refrain \new Lyrics \lyricsto verse \verseOne \new Lyrics \lyricsto verse \verseTwo \new Lyrics \lyricsto verse \verseThree \new Lyrics \lyricsto verse \verseFour } \layout { \context { \Staff \consists Ambitus_engraver } } test-lyric.pdf Description: Adobe PDF document ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Multiple stanzas to selection of melody
Am 29.07.2014 01:28, schrieb Marten: Hello Abraham, Simon, Thanks for your solutions and quick replies :) I decided to try to implement Simon's third solution, as it explicitly keeps the melody of the stanzas together with their texts. Ingenious - hadn't thought about a solution like that. I have two question about it though: 1. If I use \addlyrics instead of \new Lyrics for the stanzas, an ambitus will be rendered for the stanza and the refrain *separately* (a layout block activating the ambitus, must of course be added). If I use \new Lyrics, as in your solution, only one ambitus for the entire song is rendered (expected behaviour). Why is this so? I find the question a bit confusing. Looking at Abrahams example (in the answer he wrote) makes me wonder why you use separate voices for refrain and verse. I can’t see any necessity to do so and it contradicts the logic of the music: after all, refrain and stanza are not sung by different singers. If you use two different voices, it’s only natural that each gets an ambitus of its own. What would you expect? 2. If the stanza melody begins with a rest, the text gets aligned under the rest. Why? Please try once more to understand the difference in the mechanisms of my first and second examples: in the one with \addlyric, an association between lyrics and the voice is created and each syllable is associated with one note (thus, rests are skipped). The other way does not use direct relation between lyrics and notes: both are entered separately, with their own durations, and it’s up to you to get the alignment in time correct. Lilypond will print everything at the point of time where you put it, and if a rest and a lyric syllable come at the same point of time, they will be aligned. I hope you tried at least to understand the topic yourself from the lenghty and fully sufficient description in the manuals, to which I pointed you. Sometimes it takes a little time to comprehend, but it will save the time of the friendly persons on this list who help you with real problems. Best regards, Simon ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Multiple stanzas to selection of melody
Dear all, Trying to typeset a song I am faced with the following problem for which I can;t find a solution in the manual or snippet repository. I kindly request your help. I'm typesetting a song with one staff, where the refrain comes first and spans multiple lines of notes; after that come 3 stanzas. I'd like the song text to be placed under the stanza melody, but I don't want to add empty lines to the refrain. I'm looking for a solution with one \score block. Can this be done? In a scetch: =several notes, line 1 = Text to refrain, line 1 =several notes, line 2 = Text to refrain, line 2 =several notes, line 3 = Text to stanza 1, line 3 Text to stanza 2, line 3 Text to stanza 3, line 3 =several notes, line 4 = Text to stanza 1, line 4 Text to stanza 2, line 4 Text to stanza 3, line 4 To me it would seem logical to change the name of the Voice in line 3, and the associate the lyrics of the stanzas with the voice name in line 3. But I don't knwo how to do this. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Multiple stanzas to selection of melody
On Mon, Jul 28, 2014 at 1:47 PM, Marten msvis...@planet.nl wrote: Dear all, Trying to typeset a song I am faced with the following problem for which I can;t find a solution in the manual or snippet repository. I kindly request your help. I'm typesetting a song with one staff, where the refrain comes first and spans multiple lines of notes; after that come 3 stanzas. I'd like the song text to be placed under the stanza melody, but I don't want to add empty lines to the refrain. I'm looking for a solution with one \score block. Can this be done? In a scetch: =several notes, line 1 = Text to refrain, line 1 =several notes, line 2 = Text to refrain, line 2 =several notes, line 3 = Text to stanza 1, line 3 Text to stanza 2, line 3 Text to stanza 3, line 3 =several notes, line 4 = Text to stanza 1, line 4 Text to stanza 2, line 4 Text to stanza 3, line 4 To me it would seem logical to change the name of the Voice in line 3, and the associate the lyrics of the stanzas with the voice name in line 3. But I don't knwo how to do this. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user Maybe not the best solution, but one that works. Use two voices on separate staves, explicit line breaks, hide empty staves: =voice1 notes, line1 (empty measures voice2)= BREAK Text to refrain, line 1 (associated with voice1) =voice1 notes, line2 (empty measures voice2)= BREAK Text to refrain, line 2 (associated with voice1) =voice2 notes, line3 (empty measures voice1)= BREAK Text to stanza 1, line 1 (associated with voice2) Text to stanza 2, line 1 (associated with voice2) Text to stanza 3, line 1 (associated with voice2) =voice2 notes, line4 (empty measures voice1)= BREAK Text to stanza 1, line 2 (associated with voice2) Text to stanza 2, line 2 (associated with voice2) Text to stanza 3, line 2 (associated with voice2) If you use spacer notes (rests should work too) for the empty measures, then the refrain lyrics will show up only in lines 1 and 2 and the stanzas will show up with the notes in lines 3 and 4. Then the empty measures can be hidden with: \layout { \context { \Staff \RemoveEmptyStaves \override VerticalAxisGroup #'remove-first = ##t } } thus, showing only the refrain in the first two lines and the stanzas in the last two lines. Good luck! -Abraham ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Multiple stanzas to selection of melody
Am 28.07.2014 21:47, schrieb Marten: Dear all, Trying to typeset a song I am faced with the following problem for which I can;t find a solution in the manual or snippet repository. I kindly request your help. I'm typesetting a song with one staff, where the refrain comes first and spans multiple lines of notes; after that come 3 stanzas. I'd like the song text to be placed under the stanza melody, but I don't want to add empty lines to the refrain. I'm looking for a solution with one \score block. Can this be done? In a sketch: =several notes, line 1 = Text to refrain, line 1 =several notes, line 2 = Text to refrain, line 2 =several notes, line 3 = Text to stanza 1, line 3 Text to stanza 2, line 3 Text to stanza 3, line 3 =several notes, line 4 = Text to stanza 1, line 4 Text to stanza 2, line 4 Text to stanza 3, line 4 To me it would seem logical to change the name of the Voice in line 3, and the associate the lyrics of the stanzas with the voice name in line 3. But I don't knwo how to do this. Hello Marten, I agree that LilyPond does not have a satisfying interface for such situations (i.e. any situation with repeats, which get different text on different times, or with changing number of stanzas, as in your example). I’ve made three examples which should do what you want, the first two are similar, the third isn’t. Explanations are in the code, and more to be found in the learning manual http://lilypond.org/doc/v2.18/Documentation/learning/songs and notation reference http://lilypond.org/doc/v2.18/Documentation/notation/vocal-music. Hope that helps, Simon \version 2.19.8 #(set-default-paper-size a6 'landscape) % here, lyric syllables are automatically assigned to notes % by \lyricsto % the refrain text is written next to the second stanza % in order to be vertically centered if there is no % line break at the beginning of the stanza % in the other stanzas, the refrain must be skipped % by one underscore per missing syllable melody = \relative { \time 3/4 c'4 d e f2. d4 e f g2. \break bes4 a g f( g8 f) e[( d]) g4( e) d c2. } stanzaOne = \lyricmode { _ _ _ _ _ _ _ _ \set stanza = 1. This is the text of stan -- za one } stanzaTwo = \lyricmode { This is the text of the re -- frain. \set stanza = 2. This is the text of stan -- za two. } stanzaThree = \lyricmode { _ _ _ _ _ _ _ _ \set stanza = 3. This is the text of stan -- za three. } \score { \new Voice = melody \melody \new Lyrics \lyricsto melody \stanzaOne \new Lyrics \lyricsto melody \stanzaTwo \new Lyrics \lyricsto melody \stanzaThree }\version 2.19.8 #(set-default-paper-size a6 'landscape) % here, the lyric syllable durations are manually entered and % \lyricsto avoided. This allows skipping the refrain more easily. melody = \relative { \time 3/4 c'4 d e f2. d4 e f g2. \break bes4 a g f( g8 f) e[( d]) g4( e) d c2. } stanzaOne = \lyricmode { \skip 2.*4 \set stanza = 1. This4 is the text2 of4 stan2 -- za4 one. } stanzaTwo = \lyricmode { This4 is the text2. of4 the re -- frain.2. \set stanza = 2. This4 is the text2 of4 stan2 -- za4 two. } stanzaThree = \lyricmode { \skip 2.*4 \set stanza = 3. This4 is the text2 of4 stan2 -- za4 three. } \score { \new Voice \melody \new Lyrics \stanzaOne \new Lyrics \stanzaTwo \new Lyrics \stanzaThree }\version 2.19.8 #(set-default-paper-size a6 'landscape) % This is an entirely different layout and slightly more elegant, I think. % Here, new contexts are created in parallel to the music at the point % where the stanzas begin. refrain = \lyricmode { \set stanza = 1.â3. This4 is the text2. of4 the re -- frain.2. } stanzaOne = \lyricmode { \set stanza = 1. This4 is the text2 __ of4 stan2 -- za4 one. } stanzaTwo = \lyricmode { \set stanza = 2. This4 is the text2 __ of4 stan2 -- za4 two. } stanzaThree = \lyricmode { \set stanza = 3. This4 is the text2 __ of4 stan2 -- za4 three. } melody = \relative { \time 3/4 c'4 d e f2. d4 e f g2. \break \new Lyrics \stanzaOne \new Lyrics \stanzaTwo \new Lyrics \stanzaThree { bes4 a g f( g8 f) e[( d]) g4( e) d c2. } } \score { \new Voice \melody \new Lyrics \refrain }___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Multiple stanzas to selection of melody
Hello Abraham, Simon, Thanks for your solutions and quick replies :) I decided to try to implement Simon's third solution, as it explicitly keeps the melody of the stanzas together with their texts. Ingenious - hadn't thought about a solution like that. I have two question about it though: 1. If I use \addlyrics instead of \new Lyrics for the stanzas, an ambitus will be rendered for the stanza and the refrain *separately* (a layout block activating the ambitus, must of course be added). If I use \new Lyrics, as in your solution, only one ambitus for the entire song is rendered (expected behaviour). Why is this so? 2. If the stanza melody begins with a rest, the text gets aligned under the rest. Why? Many thanks, Marten ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Multiple stanzas to selection of melody
On Mon, Jul 28, 2014 at 5:28 PM, Marten msvis...@planet.nl wrote: Hello Abraham, Simon, Thanks for your solutions and quick replies :) I decided to try to implement Simon's third solution, as it explicitly keeps the melody of the stanzas together with their texts. Ingenious - hadn't thought about a solution like that. I have two question about it though: 1. If I use \addlyrics instead of \new Lyrics for the stanzas, an ambitus will be rendered for the stanza and the refrain *separately* (a layout block activating the ambitus, must of course be added). If I use \new Lyrics, as in your solution, only one ambitus for the entire song is rendered (expected behaviour). Why is this so? 2. If the stanza melody begins with a rest, the text gets aligned under the rest. Why? Many thanks, Marten ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user Marten, The reason why it lines up under the rest is because of how Simon notates the lyrics using the numbers to indicate the duration of the lyrics. This removes the automatic synchronizing with the notes. Here's Simon's example in the way that I described it before. It removes the need to specify the lyric durations, but may not be what you fix the ambitus issue... Regards, Abraham \version 2.18.2 #(set-default-paper-size a6 'landscape) refrainNotes = \relative c' { \time 3/4 c4 d e | f2. | d4 e f | g2. | \break s2.*4 } stanzaNotes = \relative c'' { \time 3/4 s2.*4 bes4 a g | f( g8 f) e[( d]) | g4( e) d | c2. } refrain = \lyricmode { This is the text of the re -- frain. } stanzaOne = \lyricmode { \set stanza = 1. This is the text of stan -- za one. } stanzaTwo = \lyricmode { \set stanza = 2. This is the text of stan -- za two. } stanzaThree = \lyricmode { \set stanza = 3. This is the text of stan -- za three. } \score { \new Voice = refrain \refrainNotes \new Lyrics \lyricsto refrain \refrain \new Voice = stanza \stanzaNotes \new Lyrics \lyricsto stanza \stanzaOne \new Lyrics \lyricsto stanza \stanzaTwo \new Lyrics \lyricsto stanza \stanzaThree \layout { \context { \Staff \RemoveEmptyStaves \override VerticalAxisGroup #'remove-first = ##t } } }___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Multiple stanzas to selection of melody
On Mon, Jul 28, 2014 at 07:47:17PM +, Marten wrote: Dear all, Trying to typeset a song I am faced with the following problem for which I can;t find a solution in the manual or snippet repository. I kindly request your help. I'm typesetting a song with one staff, where the refrain comes first and spans multiple lines of notes; after that come 3 stanzas. I'd like the song text to be placed under the stanza melody, but I don't want to add empty lines to the refrain. I'm looking for a solution with one \score block. Can this be done? Marten: Is the attached exaple germane to what you are trying to do? regards, Jim \version 2.19.0 refrain = \lyricmode { Here's the re -- frain. Here's the re -- frain. } verseOne = \lyricmode { This is verse one. This is verse one. } verseTwo = \lyricmode { This is verse two. This is verse two. } verseThree = \lyricmode { This is verse three. This is verse three. } verseFour = \lyricmode { This is verse four. This is verse four. } \score { { \new Voice = refrain { c'4 c'4 c'4 c'4 \break c'4 c'4 c'4 c'4 \break } \new Voice = verse { c'4 c'4 c'4 c'4 \break c'4 c'4 c'4 c'4 \break } } \new Lyrics \lyricsto refrain \refrain \new Lyrics \lyricsto verse \verseOne \new Lyrics \lyricsto verse \verseTwo \new Lyrics \lyricsto verse \verseThree \new Lyrics \lyricsto verse \verseFour } test-lyric.pdf Description: Adobe PDF document ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user