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