[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Text *not* attached to note ?
From: |
Mats Bengtsson |
Subject: |
Re: Text *not* attached to note ? |
Date: |
Fri, 06 Feb 2004 18:05:37 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 |
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
address@hidden 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
address@hidden
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: address@hidden
WWW: http://www.s3.kth.se/~mabe
=============================================