]> git.donarmstrong.com Git - lilypond.git/blob - input/les-nereides.ly
4dfc33aecd68f3f5624e51ae02e09682bcb1e101
[lilypond.git] / input / les-nereides.ly
1 \version "2.6.0"
2
3 \header {
4     composer = "ARTHUR GRAY"
5     title = "LES NÉRÉIDES"
6     subtitle = "THE NEREIDS"
7     enteredby = "JCN"
8     piece = "Allegretto scherzando"
9     copyright = "public domain"
10 }
11
12 %{
13
14 Nastiest piece of competition at
15 http://www.orphee.com/comparison/study.html, see
16 http://www.orphee.com/comparison/gray.pdf
17
18
19 lines that contain tweaks (14 currently, not counting reverts) are
20 marked with %tweak
21
22 possibly more impressive to render without tweaks?
23
24   grep -v tweak input/les-nereides.ly >> lnnt.ly
25   lilypond lnnt.ly
26
27 %}
28
29 #(define (make-text-checker text)
30   (lambda (elt) (equal? text (ly:get-grob-property elt 'text))))
31
32
33 treble = \new Voice \relative c''{
34     \key a \major
35     r2
36     | %2
37     \stemUp
38     r4 <cis eis a cis>\arpeggio r2
39     | %3
40     r4 <cis fis a cis>\arpeggio r8.
41
42     \change Staff=bass
43
44     \once\override TextScript  #'extra-offset = #'(-3 . -4) %tweak
45     
46     cis,16^2(^\markup {\small \italic "m.d." }\sustainUp
47     <fis fis,>8 <e! e,!>
48     | %4
49     <dis, a' dis>4)\sustainDown
50     
51     \change Staff=treble
52     
53     \slurUp
54     \set PianoStaff.connectArpeggios = ##t
55
56     #(set-octavation 1)
57
58     \once\override TextScript  #'extra-offset = #'(-3 . -2) %tweak
59             
60     \tieUp
61     cis''''4^\markup { \small \italic "m.g." }\arpeggio~
62     \grace {
63         cis8
64         \override Stem #'direction = #CENTER
65         
66         a16[-5_( fis dis]
67         #(set-octavation 0)
68         
69         cis32[ a-1 fis-4 dis]   cis[ a  fis)-2]
70                                 % the small grace in lower staff comes after us
71         s32
72     }
73
74
75     \stemUp
76     cis'4( bis)
77
78     | %5
79     r8 <a' a,>8(\mf <gis gis,> <fis fis,>
80     
81     % \fingerUp
82     \override Fingering  #'direction = #1
83     
84     % Manual fix for collision with slur
85     \override Fingering  #'inside-slur = ##f %tweak
86     <gis gis,> <fis fis,> e)-1-4-5 r
87
88     | %6
89     r <a a,>8(\mf <gis gis,> <fis fis,>
90     <gis gis,> <fis fis,>  e) r
91     
92     | %7
93     \bar "||"
94 }
95
96 trebleTwo = \new Voice \relative c''{
97     \stemDown
98     \slurDown
99     % \fingerDown
100     \override Fingering  #'direction = #-1
101     s2
102     | %1
103     s1*2
104     | %4
105     s4
106     <cis' a fis dis>4\arpeggio
107     <e, gis, e d!>2
108     | %5
109     s8 cis4. d4
110     \override Fingering #'add-stem-support = ##t %tweak
111     \override Fingering #'padding = #0.1 %tweak
112     <cis e,>8[( <d,_3 b'_1>
113     | %6
114     <cis_1 a'_2>)] cis'4. d4 
115     <cis e,>8[( <b d,>
116     | %7
117     <a cis,>)]
118 }
119
120 bass = \new Voice \relative c{
121     \partial 2
122     \key a \major
123     
124     \slurDown
125     \dynamicUp
126
127     r8. e,16(\f_2 <a a,>8[ <b b,>]
128     | %2
129     \override Staff.SustainPedalLineSpanner #'staff-padding = #5 %tweak
130                            
131     <cis cis,>4\sustainDown
132     \change Staff=treble
133     \stemDown
134     <a'' eis cis>4)\arpeggio
135     
136     \change Staff=bass
137     \stemNeutral
138     
139     r8. cis,,16(\sustainUp <fis fis,>8 <gis gis,>
140     
141     | %3
142 %    \once \override Stem  #'length = #6 %tweak
143     <a a,>4\sustainDown
144     \change Staff=treble
145                             
146     \revert Stem #'direction
147     \override Stem  #'direction = #-1
148     <a' fis cis>)\arpeggio
149     \change Staff=bass
150     \revert Stem #'direction
151     r2
152     
153     | %4
154     \stemDown
155     <b,, b,>4
156     \clef treble
157     \stemNeutral
158     <<
159         %urg: staff-change: ! on dis
160         <cis'' a fis dis!>\arpeggio
161     >>
162     
163     \grace {
164         \override Stem  #'stroke-style = #"grace"
165   
166         s8
167         s16 s s
168         s32 s s
169         s s s
170         \clef bass
171         <e,,, e,>32(\sustainUp\sustainDown
172     
173         \revert Stem #'stroke-style
174     }
175     <gis' e>2)
176     
177     | %5
178     \slurUp
179     
180     % \fingerDown
181     \override Fingering  #'direction = #-1
182
183                            
184     \override Staff.SustainPedalLineSpanner #'staff-padding = #3.5 %tweak
185     \set Staff.pedalSustainStyle = #'mixed
186     %%a,8 e'[-5(<a-2 cis-3>])
187
188                            
189     a,8\sustainDown e'[-5(<a cis>])-2-3
190     %%r b,-5 <e-3 gis-5 d'>4
191     r b,-5\sustainUp\sustainDown <e gis d'>4-3-5
192     \slurNeutral
193     \once \override Fingering  #'extra-offset = #'(0 . -1) %tweak
194     e,8[-5(\sustainUp
195     
196     | %6
197     \once \override Fingering  #'extra-offset = #'(0 . -1) %tweak
198     a)-2]\sustainDown
199     \slurUp
200     e'[(<a cis>)] r b,\sustainUp\sustainDown <e gis d'>4
201     \slurNeutral
202     e,8[(\sustainUp
203     
204     | %7
205     a)]
206 }
207
208 bassTwo = \new Voice \relative c{
209     \skip 2
210     \skip 1*2
211     \skip 2
212
213     \stemUp
214     \slurUp
215
216     cis'4( bis)
217 }
218
219 middleDynamics = {
220     \override Dynamics.TextScript  #'padding = #-1 %tweak
221     s2
222     s1*2
223     | %4
224     s2
225     \grace {
226         s8
227         s16 s s
228         s32 s
229         \once\override Dynamics.Hairpin  #'extra-offset = #'(0 . 2) %tweak
230         s\> s
231         s32 s s s\!
232     
233     }
234
235     s32 s-"rall." s s s8 s4
236     | %5
237     s2-"a tempo" s8
238     \once\override Dynamics.Hairpin  #'extra-offset = #'(1 . 0) %tweak
239     s \> s s
240     | %6 
241     s8\!
242     s2 s8 s\> s
243     | %7
244     s8\!
245 }
246
247 theScore = \score{
248     \context PianoStaff <<
249         \context Staff = "treble" <<
250             \treble
251             \trebleTwo
252         >>
253         \new Dynamics <<
254             \middleDynamics
255         >>
256         \context Staff = "bass" <<
257             \clef bass
258             \bass
259             \bassTwo
260         >>
261     >>
262     \layout {
263         \context {
264             \Score
265             pedalSustainStrings = #'("Ped." "*Ped." "*")
266             \remove Bar_number_engraver
267         }
268         \context {
269             \type "Engraver_group_engraver"
270             \name Dynamics
271             \consists "Output_property_engraver"
272             minimumVerticalExtent = #'(-1 . 1)
273
274             \consists "Script_engraver"
275             \consists "Dynamic_engraver"
276             \consists "Text_engraver"
277
278             \override TextScript #'font-size = #2
279             \override TextScript #'font-shape = #'italic
280
281             \consists "Skip_event_swallow_translator"
282
283             \consists "Axis_group_engraver"
284         }
285
286         \context {
287             \PianoStaff
288             \accepts Dynamics
289             \override VerticalAlignment #'forced-distance = #7
290         }
291     }
292 }
293                            
294 \book{
295     \score { \theScore }
296 }
297     
298 %%% Local variables:
299 %%% coding: utf-8
300 %%% LilyPond-indent-level:2
301 %%% End:
302