deco name type glyph
h wl wr [str]
| Default |
Scope |
Available in |
| none | immediate | txtmus abc2svg abcm2ps |
Define a decoration.
This command assumes a good knowledge of the txtmus/abc2svg/abcm2ps internals.
The arguments are:
- name: name of the decoration.
If it is the name of an existing decoration, this one is redefined.
When this name begins with 'head-', the note head is not drawn.
- type: type of the decoration.
The possible types are:
- 0, 1, 2: the decoration goes near the note, possibly inside the staff.
- 0: 'dot', 'tenuto'...
- 1: 'slide' or decoration on a note stem (not abcm2ps).
A decoration is drawn on a stem when the name of the glyph
starts with a bar ('|').
- 2: 'arpeggio'
- 3, 4: the decoration goes near the note but outside the staff.
It is usually printed above the staff.
- 3: general
- 4: below the staff
- 5, 6, 7: the decoration is tied to the staff.
It is generally printed below the staff.
- 5: above the staff (not abcm2ps)
- 6: dynamic marks
- 7: below the staff (not abcm2ps)
- 8: glissendo
- 9: alternate head
- 10: color of the note head (not abcm2ps).
The color is the name of the decoration
and glyph is ignored
- glyph: visual symbol associated to the music element.
With abcm2ps and abc2svg, it is the name of a postscript sequence (macro)
that draws the glyph.
With txtmus and abc2svg, it may be the name of a glyph in a font,
or a javascript function that draws the glyph,
or a SVG element defined in a <defs>,
or a class when the glyph is some text (see below).
- h: decoration height.
It is the minimum height for !arpeggio!.
With txtmus and abc2svg, h may contain two values separated by a comma.
The first value is the ascent, the second value is the descent.
- wl and wr: left and right widths.
- str: text to display (for some glyphs - see code).
The text may begin with '@' (at sign) followed by x and y coordinates
as in annotations.
With abcm2ps, glyph is not used.
With txtmus and abc2svg,
glyph is a style class that defaults to crdc.
The default font is the annotationfont.
Some classes are already internally defined:
crdc (italic 14px - default definition) and dacs (bold 15px).
@ as the class is accepted for compatibility and replaced by at.
abc2svg
documentation
source
author
- page hosted by Free