That probably is it. I think it also has to do with my approach of lyrics as a choir singer. I think of lyrics belonging to a staff or to a melody. Since a Voice context is part of the Staff context, I assume that the lyrics belonging to that voice need to belong to the Staff too. Musically they are a part of one staff. So it probably is a diffence in the technical / programming approach and the musical approach.
I will check later if this is indeed the solution. Thanks anyway :) greets Maurits Citeren Mats Bengtsson <[EMAIL PROTECTED]>: > Maybe it's a problem with terminology. A Staff context corresponds > to what's printed on one stave of the score, i.e. it can basically > just contain voices of music. Between the staves, you can have one > or more lines of lyrics, which are handled by the Lyrics contexts, > but they are not part of the Staff itself. > > It's a long time since I read this part of the documentation, but > I don't really understand how you can get the impression that > you could have lyrics withing a Staff context. > > /Mats > > Maurits Lamers wrote: > > Hi all, > > > > I tried that, without any success. It doesn't seem to matter where or > > when I declare the lyrics context, it just fails. > > > > my code looks now like this: > > > > \new ChoirStaff { > > << > > \new Staff { > > \notes \relative c' { > > \key g \major > > \context Lyrics = stemeenlyrics { s1 } > > \context Voice = melodietwee \relative c' { > > s4 | s 2.*15 | s2 > > > > d4 | g g8 a g fis | e4 e e | a4 a8 b a g | fis4 d d | > > b'4 b8 c b a | > > g4 e d8 d | e4 a fis | g2 d4 | g g g | fis2 fis4 | g fis > > e | d2 a'4 | > > b4 a8 a g g | d'4 d, d8 d | e4 a fis | b g c | a d b > > } > > \lyricsto "melodietwee" \context Lyrics = stemeenlyrics { > > We wish you a mer -- ry Christ -- mas, we wish you a > > mer -- ry Christ -- mas, we wish you a mer -- ry Christ -- mas > > and a hap -- py new year. Glad ti -- dings we bring to you > > and your kin. > > We wish you a mer -- ry Christ -- mas and a hap -- py new > > year. > > } > > } > > > > } > > > > > > \new Staff { > > \notes \relative c'{ > > \key g \major > > \context Lyrics = stemtweelyrics { s1 } > > \context Voice = stemtwee \relative c' { > > s4 | s 2.*15 | s2 > > > > d4 | g, b d | e e8 d c b | a4 c e | fis fis8 e d c | b4 > > d fis | > > g g8 fis e d | c4 a d | g,2 d'4 | g,8 a b c d e | fis4. > > e8 d4 | > > b2 cis4 | d2 a'4 | b a g | d' d, d | e a fis | b g c | a > > d b > > } > > \lyricsto "stemtwee" \context Lyrics = stemtweelyrics { > > We wish you a mer -- ry Christ -- mas, we wish you a > > mer -- ry Christ -- mas, we wish you a mer -- ry Christ > > -- mas > > and a hap -- py new year. Glad ti -- dings we bring to > > you and your kin. > > We wish you a mer -- ry Christ -- mas and a hap -- py > > new year. > > } > > } > > > > } > > > > >> > > } > > > > As I read the documentation this should work. > > I'm getting everything from bar check failed to junking ... event. > > > > What goes wrong ?? > > > > greets.. > > > > Maurits > > > > On 17-okt-04, at 19:08, Ruud van Silfhout wrote: > > > >> Hello Maurits, > >> > >> I recognized the problem and I knew it had to do with the way you define > >> your staffs and your lyrics. So, I rearranged it a little bit and that > >> works. > >> The way I read the documentation, the lyrics should be > >> created outside the staff context. and you defined, as far as I could > >> see > >> it, > >> a Voice context and a lyrics context in a Voice; I'am amazed it worked > >> anyway in the original situation > >> > >> Have fun! > >> Ruud van Silfhout > >> > >> ----- Original Message ----- > >> From: "Maurits Lamers" <[EMAIL PROTECTED]> > >> To: <[EMAIL PROTECTED]> > >> Sent: Thursday, October 14, 2004 4:48 PM > >> Subject: Little problem with lilypond (Modified by Maurits Lamers) > >> > >> > >>> Hi all, > >>> > >>> I run into a problem setting music for choir. > >>> I searched all archives, all wiki pages but nothing turned up. > >>> > >>> When you are setting music for choir, you sometimes have a first part > >>> that is for one voice only and repeated a few times (due to multiple > >>> verses). > >>> After that the verse is repeated, but this time with an extra voice > >>> written to it. > >>> > >>> The setting of the music is not a problem, but when you are trying to > >>> add lyrics there occurs something strange. > >>> > >>> The song in question is "We wish you a merry Christmas". I wrote a > >>> simple second voice to the last verse. > >>> Setting the music in lilypond was not difficult, so was setting the > >>> lyrics for the first three verses. > >>> > >>> I used a \new Staff to set those first three verses. > >>> > >>> To set the last verse, I used a new Choirstaff. Inside this Choirstaff > >>> I define two new staves. > >>> Because every voice in every staff has its own lyrics, I define the > >>> lyrics in each staff. > >>> > >>> What happens is this: If you use the code as showed below, a new staff > >>> is created without a key signature and the lyrics are aligned > >>> correctly, namely directly below the notes to which the lyrics belong > >>> to. > >>> > >>> If you include the key signature ( \key g \major ) (like in the second > >>> staff definition) the lyrics are misplaced, namely under the second > >>> staff > >>> > >>> I included both versions, namely with key signature definition and > >>> without. I include both the .ly files. > >>> You can also find all files at http://www2.hku.nl/~maurits/lilypond/ > >>> > >>> The files with lyricsgoed are with the lyrics aligned correctly. > >>> The files with lyricsverkeerd are with the key signature and with the > >>> misplaced lyrics. > >>> > >>> I use Lilypond 2.2.5 for Mac OS X and PC and both render the same kind > >>> of problem. > >>> > >>> Anyone recognize this problem ?? > >>> > >>> greets > >>> > >>> Maurits Lamers > >>> > >>> \new ChoirStaff { > >>> << > >>> \new Staff { > >>> \notes \relative c' { > >>> \new Voice { > >>> << > >>> \context Voice = melodietwee \relative c' { > >>> s4 | s 2.*15 | s2 > >>> > >>> d4 | g g8 a g fis | e4 e e | a4 a8 b a g | fis4 d d | b'4 b8 c b a > >>> | > >>> g4 e d8 d | e4 a fis | g2 d4 | g g g | fis2 fis4 | g fis e | d2 a'4 > >>> | > >>> b4 a8 a g g | d'4 d, d8 d | e4 a fis | b g c | a d b > >>> } > >>> > >>> \lyrics \lyricsto "melodietwee" \new Lyrics { > >>> We wish you a mer -- ry Christ -- mas, we wish you a > >>> mer -- ry Christ -- mas, we wish you a mer -- ry Christ -- mas > >>> and a hap -- py new year. Glad ti -- dings we bring to you and > >>> your kin. > >>> We wish you a mer -- ry Christ -- mas and a hap -- py new year. > >>> } > >>> > >>>>> > >>> } > >>> > >>> } > >>> } > >>> \new Staff { > >>> \notes \relative c'{ > >>> \key g \major > >>> \new Voice { > >>> << > >>> \context Voice = stemtwee \relative c' { > >>> s4 | s 2.*15 | s2 > >>> > >>> d4 | g, b d | e e8 d c b | a4 c e | fis fis8 e d c | b4 d fis | > >>> g g8 fis e d | c4 a d | g,2 d'4 | g,8 a b c d e | fis4. e8 d4 | > >>> b2 cis4 | d2 a'4 | b a g | d' d, d | e a fis | b g c | a d b > >>> } > >>> \lyrics \lyricsto "stemtwee" \new Lyrics { > >>> We wish you a mer -- ry Christ -- mas, we wish you a > >>> mer -- ry Christ -- mas, we wish you a mer -- ry Christ -- mas > >>> and a hap -- py new year. Glad ti -- dings we bring to you and > >>> your kin. > >>> We wish you a mer -- ry Christ -- mas and a hap -- py new year. > >>> } > >>> > >>>>> > >>> } > >>> } > >>> > >>> } > >>> > >>>>> > >>> } > >>> > >>> > >>> > >>> > >>> > >>> > >> > >> > >> ----------------------------------------------------------------------- > >> ----- > >> ---- > >> > >> > >>> _______________________________________________ > >>> lilypond-user mailing list > >>> [EMAIL PROTECTED] > >>> http://lists.gnu.org/mailman/listinfo/lilypond-user > >>> > >> > >> \new ChoirStaff { > >> << > >> \new Staff { > >> \context Voice = melodietwee \notes \relative c' { > >> \key g \major \time 3/4 \partial 4 s4 | s 2.*15 | s2 > >> d4 | g g8 a g fis | e4 e e | a4 a8 b a g | fis4 d d | b'4 b8 c b a | > >> g4 e d8 d | e4 a fis | g2 d4 | g g g | fis2 fis4 | g fis e | d2 > >> a'4 | > >> b4 a8 a g g | d'4 d, d8 d | e4 a fis | b g c | a d b > >> } > >> } > >> \lyrics \lyricsto "melodietwee" \new Lyrics { > >> We wish you a mer -- ry Christ -- mas, we wish you a > >> mer -- ry Christ -- mas, we wish you a mer -- ry Christ -- mas > >> and a hap -- py new year. Glad ti -- dings we bring to you and your > >> kin. > >> We wish you a mer -- ry Christ -- mas and a hap -- py new year. > >> } > >> \new Staff { > >> \context Voice = stemtwee \notes \relative c' { > >> \key g \major \time 3/4 \partial 4 s4 | s 2.*15 | s2 > >> d4 | g, b d | e e8 d c b | a4 c e | fis fis8 e d c | b4 d fis | > >> g g8 fis e d | c4 a d | g,2 d'4 | g,8 a b c d e | fis4. e8 d4 | > >> b2 cis4 | d2 a'4 | b a g | d' d, d | e a fis | b g c | a d b > >> } > >> > >> } > >> \lyrics \lyricsto "stemtwee" \new Lyrics { > >> We wish you a mer -- ry Christ -- mas, we wish you a > >> mer -- ry Christ -- mas, we wish you a mer -- ry Christ -- mas > >> and a hap -- py new year. Glad ti -- dings we bring to you and > >> your > >> kin. > >> We wish you a mer -- ry Christ -- mas and a hap -- py new year. > >> } > >> > >>>> > >> } > >> > >> > >> > >> > >> _______________________________________________ > >> lilypond-user mailing list > >> [EMAIL PROTECTED] > >> http://lists.gnu.org/mailman/listinfo/lilypond-user > > > > > > > > > > _______________________________________________ > > lilypond-user mailing list > > [EMAIL PROTECTED] > > http://lists.gnu.org/mailman/listinfo/lilypond-user > > -- > ============================================= > Mats Bengtsson > Signal Processing > Signals, Sensors and Systems > Royal Institute of Technology > SE-100 44 STOCKHOLM > Sweden > Phone: (+46) 8 790 8463 > Fax: (+46) 8 790 7260 > Email: [EMAIL PROTECTED] > WWW: http://www.s3.kth.se/~mabe > ============================================= > > > _______________________________________________ > lilypond-user mailing list > [EMAIL PROTECTED] > http://lists.gnu.org/mailman/listinfo/lilypond-user > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. _______________________________________________ lilypond-user mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/lilypond-user