]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/changing-the-text-for-sustain-markings.ly
LSR: update.
[lilypond.git] / Documentation / snippets / changing-the-text-for-sustain-markings.ly
1 %% Do not edit this file; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% This file is in the public domain.
4 \version "2.13.16"
5
6 \header {
7   lsrtags = "keyboards, tweaks-and-overrides"
8
9   texidoc = "
10 @code{Staff.pedalSustainStrings} can be used to set the text used for
11 pedal down and up.  Note that the only valid strings are those found in
12 the list of pedal glyphs - the values used this snippet constitute an
13 exhaustive list.
14
15 "
16   doctitle = "Changing the text for sustain markings"
17 } % begin verbatim
18
19 sustainNotes = { c4\sustainOn d e\sustainOff\sustainOn f\sustainOff }
20
21 \relative c' {
22   \sustainNotes
23   \set Staff.pedalSustainStrings = #'("P" "P-" "-")
24   \sustainNotes
25   \set Staff.pedalSustainStrings = #'("d" "de" "e")
26   \sustainNotes
27   \set Staff.pedalSustainStrings = #'("M" "M-" "-")
28   \sustainNotes
29   \set Staff.pedalSustainStrings = #'("Ped" "*Ped" "*")
30   \sustainNotes
31 }