lilypond-1.3.130
[lilypond.git] / input / bugs / text-dynamics.ly
blob03dfeee77cd76d4125235ec2d462c487857f6e51
1 \header{
2 Composer="Sergej Rachmaninov (1873-1943)";
3 Title="Elegie";
4 Subtitle="À Monsieur A. Arensky";
5 Opus="Opus 3 Nr 1";
6 Note="Small fragment to show Pedal and Dynamics problems";
7 Enteredby="JCN";
11 % Arg.
12 % How to remove dynamics from Voice/Staff, but still show fingering?
13 % When Dynamic_engraver is removed, the Text_engraver happily engraves
14 % the dynamic markings.
15 % When the Text_engraver is removed, it can't engrave the fingerings.
18 global = \notes{
19 \key es \minor;
20 \time 4/4;
23 upperMusic = \context Voice\notes\relative c'' {
27 r2 ges'2--~
30 upperDynamics = \context Voice\notes {
32 s1\pp
34 s2 s2\mf
37 upperFingering = \context Voice\notes {
41 s2 s2-4
44 lowerMusic = \context Voice\notes\relative c {
46 <es,8(es,> bes' ges' es' bes' es, ges,)bes,
47 <es,8(es,> bes' ges' es' bes' es, ges,)bes,
48 <es,8(es,> bes' ges' es' bes' es, ges,)bes,
51 lowerPedal = \context Voice\notes {
54 s8\unachorda\sustaindown s8 s4 s2
55 s8\sustaindown\sustainup s8 s4 s2
56 s8\sustaindown\sustainup s8 s4 s2\trechorde
59 lowerDynamics = \context Voice\notes {
63 lowerFingering = \context Voice\notes {
65 s8 s8-5 s-2 s-1 s-2 s-1 s-2 s
70 \score{
71 \context PianoStaff <
72 \context UpperStaff=upper <
73 \global
74 \upperMusic
75 \upperDynamics
76 \upperFingering
77 \lowerPedal
79 \context LowerStaff=lower <
80 \global
81 \clef bass;
82 \lowerMusic
83 \lowerPedal
84 \lowerDynamics
85 \lowerFingering
86 \upperDynamics
89 \paper{
90 % Hmm
91 \translator {
92 \VoiceContext
93 \remove "Piano_pedal_engraver";
94 \remove "Dynamic_engraver";
95 % AAAARGH!
96 \remove "Text_engraver";
98 \translator {
99 \StaffContext
100 \name "UpperStaff";
101 \consists "Dynamic_engraver";
102 dynamicPadding = #3 % urg, in \pt
103 dynamicMinimumSpace = #6 % urg, in \pt
105 \translator {
106 \StaffContext
107 \name "LowerStaff";
108 \consists "Piano_pedal_engraver";
109 startSustain = #"Ped."
110 stopSustain = #"*"
111 stopStartSustain = #"-P"
112 startUnaChorda = #"una chorda"
113 stopUnaChorda = #"tre chorde"
114 textScriptPadding = #3.0
116 \translator {
117 \PianoStaffContext
118 \accepts "UpperStaff";
119 \accepts "LowerStaff";
121 \translator {
122 \ScoreContext
123 timeSignatureStyle = #"C"
126 \midi{
127 % Zucht
128 \translator {
129 \StaffContext
130 \name "UpperStaff";
132 \translator {
133 \StaffContext
134 \name "LowerStaff";
136 \translator {
137 \ScoreContext
138 \accepts "UpperStaff";
139 \accepts "LowerStaff";
141 \tempo 4 = 88;