Of course! The trick is to use a simultaneous line of invisible notes that you can attach the text to. Just make sure to keep them in the same Voice context as the actual music, otherwise you might get collisions between note heads and text. Example:
mymusic = \notes \relative c' {\repeat unfold 5 {c d e f}} myannotations = \notes{ s1^"First bar" | s1*2 | s1^"Fourth bar" |}
\score{ \new Voice << \mymusic \myannotations >> }
/Mats
[EMAIL PROTECTED] wrote:
Hello.
Is there a way to add text to a staff, other than making it superscript or subscript
of a note?
The point is that I have a sequence of notes that is recurring, so that I use a variable
to store them, but I want to add a different text to (the begininning or end of) that sequence each time it appears, hence I can't add the text inside the variable definition.
Best regards,
Gilles
_______________________________________________ Lilypond-user mailing list [EMAIL PROTECTED] http://mail.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://mail.gnu.org/mailman/listinfo/lilypond-user