Elements of type text are used for placing arbitrary strings of text on the score. They must not be used to place neither the lyrics under the notes nor the score titles as for both of them there are specific elements.
|
Examples:
(text "Angelus dicit:" (dx -5)(dy 60)) (text "Allegro" dy:-30) (text "A" dy:0 hasWidth) (text "Right" dy:40 right (font normal 24)) (text "Example 1" dx:center dy:20 center)
Parameter Origin specifies the line
used as reference in the
Location parameter: either the top line of
the text or its bottom line.
By default, location parameter refers to the bottom line of the text.
Parameter Alignment refers to how the
text will be positioned, relative to
the specified location point and origin:
Location should be normally
relative to the parent's anchor point. But in case
of text elements defined in a measure,
they are relative to current x position and
fifth line of staff.
The font settings are stored as new default settings for coming text elements
By default, text elements do not influence the note spacing. To take text width into account, parameter hasWidth must be included.
The location admits an special keyword, dx:center, which means 'center of current measure'. This moves the current x location to the center of the space occupied by current measure. Using this keyword in conjunction with alignment center simplifies placing texts centered in a measure.