4 composer = "ARTHUR GRAY"
5 title = "LES N\\'ER\\'EIDES"
6 subtitle = "THE NEREIDS"
8 piece = "Allegretto scherzando"
9 copyright = "public domain"
14 Nastiest piece of competition at
15 http://www.orphee.com/comparison/study.html, see
16 http://www.orphee.com/comparison/gray.pdf
19 lines that contain tweaks (17 currently, not counting reverts) are
22 possibly more impressive to render without tweaks?
24 grep -v tweak input/les-nereides.ly > lnnt.ly
29 #(ly:set-point-and-click 'line-column)
30 #(define (make-text-checker text)
31 (lambda (elt) (equal? text (ly:get-grob-property elt 'text))))
34 treble = \context Voice=treble \notes\relative c''{
39 r4 <<cis eis a cis>>-\arpeggio r2
41 r4 <<cis fis a cis>>-\arpeggio r8.
43 \translator Staff=bass
45 \once\property Voice.TextScript \set #'extra-offset = #'(-3 . -4) %tweak
47 cis,16^2-(^\markup {\small \italic "m.d." }
48 <<fis fis,>>8 <<e! e,!>>
52 \translator Staff=treble
55 \property PianoStaff.connectArpeggios = ##t
59 \once\property Voice.TextScript \set #'extra-offset = #'(-3 . -2) %tweak
62 cis''''4^\markup { \small \italic "m.g." }-\arpeggio-~
67 \property Voice.Stem \set #'direction = #0
72 cis32-[ a-1 fis-4 dis] cis-[ a fis-)-2]
73 % the small grace in lower staff comes after us
81 r8 <<a' a,>>8-(-\mf <<gis gis,>> <<fis fis,>>
84 \property Voice.Fingering \set #'direction = #1
86 % Manual fix for collision with slur
87 \property Voice.Fingering \set #'extra-offset = #'(0 . 1) %tweak
88 <<gis gis,>> <<fis fis,>> e-)-1-4-5 r
91 r <<a a,>>8-(-\mf <<gis gis,>> <<fis fis,>>
92 <<gis gis,>> <<fis fis,>> e-) r
98 trebleTwo = \context Voice=trebleTwo \notes\relative c''{
102 \property Voice.Fingering \set #'direction = #-1
103 \property Voice.Fingering \set #'extra-offset = #'(0 . 1.2)
109 <<cis' a fis dis>>4-\arpeggio
113 %%<<cis e,>>8-[-( <<b-3 d,-1>>
114 <<cis e,>>8-[-( <<b d,>>-3-1
116 %%<<a-2 cis,-1>>-)] cis4. d4
117 <<a cis,>>-)-]-2-1 cis4. d4
118 <<cis e,>>8-[-( <<b d,>>
123 bass = \context Voice=bass \notes\relative c{
127 % Allow ugly (highly blown-up) slurs
128 \property Voice.Slur \override #'beautiful = #5.0 %tweak
129 \property Voice.Slur \override #'attachment-offset = #'((0 . 3) . (0 . -4)) %tweak
134 r8. e,16-(-\f_2 <<a a,>>8-[ <<b b,>>]
137 \translator Staff=treble
139 \property Voice.Slur \override #'attachment = #'(stem . stem) %tweak
140 <<a'' eis cis>>4-)-\arpeggio
142 \property Voice.Slur \revert #'attachment %tweak
143 \translator Staff=bass
146 \property Voice.Slur \revert #'y-free %tweak
147 \property Voice.Slur \override #'y-free = #0.1 %tweak
148 \property Voice.Slur \revert #'attachment-offset %tweak
149 \property Voice.Slur \override #'attachment-offset = #'((0 . 3) . (0 . 8)) %tweak
150 r8. cis,,16( <<fis fis,>>8 <<gis gis,>>
153 \property Voice.Stem \set #'length = #5 %tweak
155 \translator Staff=treble
157 \property Voice.Stem \revert #'length %tweak
158 \property Voice.Stem \revert #'direction
159 \property Voice.Stem \override #'direction = #-1
160 <<a' fis cis>>-)-\arpeggio
161 \translator Staff=bass
162 \property Voice.Stem \revert #'direction
166 \property Voice.Slur \revert #'beautiful %tweak
167 \property Voice.Slur \revert #'attachment-offset %tweak
173 %urg: staff-change: ! on dis
174 <<cis'' a fis dis!>>-\arpeggio
183 \property Voice.fontSize = #-3
191 \property Voice.Fingering \set #'direction = #-1
193 %%a,8 e'-[-5-(<<a-2 cis-3>>-]-)
194 a,8 e'-[-5-(<<a cis>>-]-)-2-3
195 %%r b,-5 <<e-3 gis-5 d'>>4
196 r b,-5 <<e gis d'>>4-3-5
198 \once \property Voice.Fingering \set #'extra-offset = #'(0 . -1) %tweak
202 \once \property Voice.Fingering \set #'extra-offset = #'(0 . -1) %tweak
205 e'-[(<<a cis>>-)] r b, <<e gis d'>>4
213 bassTwo = \context Voice=bassTwo \notes\relative c{
224 middleDynamics = \context Dynamics=middle \notes{
225 \property Dynamics.TextScript \set #'padding = #-1 %tweak
234 \once\property Dynamics.Hairpin \set #'extra-offset = #'(0 . 2) %tweak
238 s32 s-"rall." s s s8 s4
241 \once\property Dynamics.Hairpin \set #'extra-offset = #'(1 . 0) %tweak
250 lowerDynamics = \context Dynamics=lower \notes{
253 s2-\sustainDown s8. s16-\sustainUp s4
255 s2-\sustainDown s8. s16-\sustainUp s4
258 \property Dynamics.pedalSustainStrings = #'("Ped." "*Ped." "*")
260 % grace destroys pedal-line-spanner?
261 % let's do manual tweak:
262 \once\property Dynamics.SustainPedal \set #'extra-offset = #'(10 . 0) %tweak
264 \once\property Dynamics.SustainPedal \set #'extra-offset = #'(16 . 0) %tweak
272 s32 s s s-\sustainDown
278 % ugh, I don't think that 'mixed should show last edge, but rather:
280 % Ped__________/\__________ *
282 % that's what gray wants, anyway.
284 \property Dynamics.pedalSustainStyle = #'mixed
286 s s-\sustainUp-\sustainDown s
288 \once \property Dynamics.pedalSustainStyle = #'text
292 \property Dynamics.pedalSustainStyle = #'mixed
294 s s-\sustainUp-\sustainDown s
296 \once \property Dynamics.pedalSustainStyle = #'text
302 \context PianoStaff <
303 \context Staff=treble <
307 \context Dynamics=middle <
310 \context Staff=bass <
315 \context Dynamics=lower <
322 \remove Bar_number_engraver
325 \type "Engraver_group_engraver"
327 \consists "Output_property_engraver"
328 minimumVerticalExtent = #'(-1 . 1)
330 pedalSustainStrings = #'("Ped." "*Ped." "*")
332 \consists "Piano_pedal_engraver"
333 \consists "Script_engraver"
334 \consists "Dynamic_engraver"
335 \consists "Text_engraver"
337 TextScript \override #'font-relative-size = #1
338 TextScript \override #'font-shape = #'italic
340 \consists "Skip_event_swallow_translator"
342 \consistsend "Axis_group_engraver"
348 VerticalAlignment \override #'forced-distance = #7
354 %%% LilyPond-indent-level:4
356 %% new-chords-done %%