[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: override
From: |
Mats Bengtsson |
Subject: |
Re: override |
Date: |
Tue, 22 Mar 2005 10:31:42 +0100 |
User-agent: |
Mozilla Thunderbird 1.0 (X11/20041206) |
Now I realize that my previous answer wasn't completely correct, since
you had defined your own macro for this articulation. Since you used
\markup, the layout object is indeed called TextScript and nothing else.
The extra-offset property specifies how you want to move the object
relative to its normal position. So, you can always try first without
the \override to see where LilyPond wants to put the object, then you
can figure out where you want to move it.
The first number is the horizontaldistance and the second number is the
vertical distance. As all other distances, 1 corresponds to the distance
between two staff lines.
I think your real question is: Where does LilyPond normally place text
scripts? The horizontal placement is simple, that's just centered above
the note. For the vertical position it depends on the pitch of the note.
If the note is within the stave (between d' and e'' if you have a G
clef), then the text script is placed above the top of the stave and
the distance from the stave to the text is determined by the 'padding'
property. If the pitch is higher so the note is above the stave, then
the distance is calculated from the note instead.
In short, the text is placed high enough so it's at least 'padding'
above both the note and the stave.
/Mats
Jean-marc LEGRAND wrote:
Hi list.
On XP lily2.4.2, I use to define :
tr = \markup {\musicglyph #"scripts-rcomma"}
and make : \once \override TextScript #'extra-offset = #'(2.1 . -1.7) a8^\tr,
for example, which
puts a comma just after the note (ancoent way to indicate a trill in baroque
music).
the thing is that I can't understand what the -1.7 respresents exactly. I
always indicate this
number in a relative way (considering other tr around). But I can't say "for an
A, the override is :
\override TextScript #'extra-offset = #'(2.1 . -1.7) , for a B : \override
TextScript
#'extra-offset = #'(2.1 . -2.5)" , and so on.
Can anyone explain to me what these numbers really mean ?
_______________________________________________
lilypond-user mailing list
address@hidden
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: address@hidden
WWW: http://www.s3.kth.se/~mabe
=============================================
- override, Jean-marc LEGRAND, 2005/03/22
- Re: override,
Mats Bengtsson <=