Note that the concept of Staff in LilyPond perhaps differs from what you
have in mind.
You are not the first to consider a "staff" to contain not only the
music but also the lyrics
and the accompanying chords. However, in LilyPond terminology, the
"Staff" context
contains only the 5 lines, the notes and rests, and the decoration
around it like slurs, articulations
and such, but the lyrics and chords are separate contexts that should
not be included in the Staff.
Therefore, I don't really agree with Reinhold's answer since also the
Lyrics should be outside
the Staff:
\score {
<<
\echords
\new Staff {
\new Voice = "zemusic" { \emusic }
}
\new Lyrics \lyricsto "zemusic" { a bunch of lyrics }
>>
}
/Mats
Reinhold Kainhofer wrote:
Am Freitag, 18. April 2008 schrieb Aaron Morse:
\score {
\new Staff
[the two lesser-than symbols here, it isn't letting me post them]
\echords
\new Voice = "zemusic" { \emusic }
\new Lyrics \lyricsto "zemusic" { a bunch of lyrics }
[the two greater-than symbols here, again, won't let me post them]
}
The problem is that when I run the file, the chords end up being printed
below the music, instead of above it (between the staff and the lyrics).
I'm not sure why -- but is there a way I can get them printed above (as is
traditional)?
Staves, chord voices, lyrics, etc. are printed in the order in which they are
generated. In your case, first the staff is created and after that the chords
and then the lyrics => They'll appear in this order in the PDF.
To print the chords before the staff, simply generate the ChordNames context
before the Staff:
\score {
<<
\echords
\new Staff
<<
\new Voice = "zemusic" { \emusic }
\new Lyrics \lyricsto "zemusic" { a bunch of lyrics }
>>
>>
}
Cheers,
Reinhold
--
=============================================
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
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
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user