nächstes: Other, voriges: Music, aufwärts: Text markup commands
\fret-diagram
definition-string (string)Make a (guitar) fret diagram. For example, say
\markup \fret-diagram #"s:0.75;6-x;5-x;4-o;3-2;2-3;1-2;"
for fret spacing 3/4 of staff space, D chord diagram
Syntax rules for definition-string:
s:
number – Set the fret spacing of the diagram (in staff
spaces).
Default: 1.
t:
number – Set the line thickness (in staff spaces).
Default: 0.05.
h:
number – Set the height of the diagram in frets.
Default: 4.
w:
number – Set the width of the diagram in strings.
Default: 6.
f:
number – Set fingering label type
(0 = none, 1 = in circle on string, 2 = below string).
Default: 0.
d:
number – Set radius of dot, in terms of fret spacing.
Default: 0.25.
p:
number – Set the position of the dot in the fret space.
0.5 is centered; 1 is on lower fret bar, 0 is on upper fret bar.
Default: 0.6.
c:
string1-
string2-
fret – Include a
barre mark from string1 to string2 on fret.
-
fret – Place a dot on string at fret.
If fret is ‘o’, string is identified as open.
If fret is ‘x’, string is identified as muted.
-
fret-
fingering – Place a dot on
string at fret, and label with fingering as defined
by the f:
code.
Used properties:
thickness
(0.5)
fret-diagram-details
size
(1.0)
align-dir
(-0.4)
\fret-diagram-terse
definition-string (string)Make a fret diagram markup using terse string-based syntax.
Here is an example
\markup \fret-diagram-terse #"x;x;o;2;3;2;"
for a D chord diagram.
Syntax rules for definition-string:
-
,
followed by the finger indicator, e.g. ‘3-2’ for playing the third
fret with the second finger.
-(
to start a barre and -)
to end the barre.
Used properties:
thickness
(0.5)
fret-diagram-details
size
(1.0)
align-dir
(-0.4)
\fret-diagram-verbose
marking-list (list)Make a fret diagram containing the symbols indicated in marking-list.
For example,
\markup \fret-diagram-verbose #'((mute 6) (mute 5) (open 4) (place-fret 3 2) (place-fret 2 3) (place-fret 1 2))
produces a standard D chord diagram without fingering indications.
Possible elements in marking-list:
(mute
string-number)
(open
string-number)
(barre
start-string end-string fret-number)
(place-fret
string-number fret-number finger-value)
place-fret
element is present,
finger-value will be displayed according to the setting of the
variable finger-code. There is no limit to the number of fret
indications per string.
Used properties:
thickness
(0.5)
fret-diagram-details
size
(1.0)
align-dir
(-0.4)
\harp-pedal
definition-string (string)Possible elements in definition-string:
^
-
v
|
o
The function also checks if the string has the typical form of three pedals, then the divider and then the remaining four pedals. If not it prints out a warning. However, in any case, it will also print each symbol in the order as given. This means you can place the divider (even multiple dividers) anywhere you want, but you'll have to live with the warnings.
The appearance of the diagram can be tweaked inter alia using the size property
of the TextScript grob (\override Voice.TextScript #'size = #0.3
) for
the overall, the thickness property
(\override Voice.TextScript #'thickness = #3
) for the line thickness of
the horizontal line and the divider. The remaining configuration (box sizes,
offsets and spaces) is done by the harp-pedal-details list of properties
(\override Voice.TextScript #'harp-pedal-details #'box-width = #1
).
It contains the following settings: box-offset
(vertical shift of the
box center for up/down pedals), box-width
, box-height
,
space-before-divider
(the spacing between two boxes before the
divider) and space-after-divider
(box spacing after the divider).
\markup \harp-pedal #"^-v|--ov^"
Used properties:
thickness
(0.5)
harp-pedal-details
size
(1.0)
Diese Seite ist für LilyPond-2.11.58 (Entwicklungszweig).
Fehler bitte an http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs melden.
Ihre Vorschläge für die Dokumentation sind willkommen.