1 #(ly
:set-option
'old-relative
)
5 composer
= "ARTHUR GRAY"
6 title
= "LES N\\'ER\\'EIDES"
7 subtitle
= "THE NEREIDS"
9 piece
= "Allegretto scherzando"
10 copyright
= "public domain"
15 Nastiest piece of competition at
16 http://www.orphee.com/comparison/study.html, see
17 http://www.orphee.com/comparison/gray.pdf
20 lines that contain tweaks (17 currently, not counting reverts) are
23 possibly more impressive to render without tweaks?
25 grep -v tweak input/les-nereides.ly > lnnt.ly
30 #(ly:set-point-and-click 'line-column)
31 #(define (make-text-checker text)
32 (lambda (elt) (equal? text (ly:get-grob-property elt 'text))))
35 treble = \context Voice=treble \notes\relative c''{
40 r4 <<cis eis a cis>>-\arpeggio r2
42 r4 <<cis fis a cis>>-\arpeggio r8.
44 \translator Staff=bass
46 \once\property Voice.TextScript \set #'extra-offset = #'(-3 . -4) %tweak
48 cis,16^2-(^\markup {\small \italic "m.d." }
49 <<fis fis,>>8 <<e! e,!>>
53 \translator Staff=treble
56 \property PianoStaff.connectArpeggios = ##t
60 \once\property Voice.TextScript \set #'extra-offset = #'(-3 . -2) %tweak
63 cis''''4^\markup { \small \italic "m.g." }-\arpeggio-~
68 \property Voice.Stem \set #'direction = #0
73 cis32-[ a-1 fis-4 dis] cis-[ a fis-)-2]
74 % the small grace in lower staff comes after us
82 r8 <<a' a,>>8-(-\mf <<gis gis,>> <<fis fis,>>
85 \property Voice.Fingering \set #'direction = #1
87 % Manual fix for collision with slur
88 \property Voice.Fingering \set #'extra-offset = #'(0 . 1) %tweak
89 <<gis gis,>> <<fis fis,>> e-)-1-4-5 r
92 r <<a a,>>8-(-\mf <<gis gis,>> <<fis fis,>>
93 <<gis gis,>> <<fis fis,>> e-) r
99 trebleTwo = \context Voice=trebleTwo \notes\relative c''{
103 \property Voice.Fingering \set #'direction = #-1
104 \property Voice.Fingering \set #'extra-offset = #'(0 . 1.2)
110 <<cis' a fis dis>>4-\arpeggio
114 %%<<cis e,>>8-[-( <<b-3 d,-1>>
115 <<cis e,>>8-[-( <<b d,>>-3-1
117 %%<<a-2 cis,-1>>-)] cis4. d4
118 <<a cis,>>-)-]-2-1 cis4. d4
119 <<cis e,>>8-[-( <<b d,>>
124 bass = \context Voice=bass \notes\relative c{
128 % Allow ugly (highly blown-up) slurs
129 \property Voice.Slur \override #'beautiful = #5.0 %tweak
130 \property Voice.Slur \override #'attachment-offset = #'((0 . 3) . (0 . -4)) %tweak
135 r8. e,16-(-\f_2 <<a a,>>8-[ <<b b,>>]
138 \translator Staff=treble
140 \property Voice.Slur \override #'attachment = #'(stem . stem) %tweak
141 <<a'' eis cis>>4-)-\arpeggio
143 \property Voice.Slur \revert #'attachment %tweak
144 \translator Staff=bass
147 \property Voice.Slur \revert #'y-free %tweak
148 \property Voice.Slur \override #'y-free = #0.1 %tweak
149 \property Voice.Slur \revert #'attachment-offset %tweak
150 \property Voice.Slur \override #'attachment-offset = #'((0 . 3) . (0 . 8)) %tweak
151 r8. cis,,16( <<fis fis,>>8 <<gis gis,>>
154 \property Voice.Stem \set #'length = #5 %tweak
156 \translator Staff=treble
158 \property Voice.Stem \revert #'length %tweak
159 \property Voice.Stem \revert #'direction
160 \property Voice.Stem \override #'direction = #-1
161 <<a' fis cis>>-)-\arpeggio
162 \translator Staff=bass
163 \property Voice.Stem \revert #'direction
167 \property Voice.Slur \revert #'beautiful %tweak
168 \property Voice.Slur \revert #'attachment-offset %tweak
174 %urg: staff-change: ! on dis
175 <<cis'' a fis dis!>>-\arpeggio
184 \property Voice.fontSize = #-3
192 \property Voice.Fingering \set #'direction = #-1
194 %%a,8 e'-[-5-(<<a-2 cis-3>>-]-)
195 a,8 e'-[-5-(<<a cis>>-]-)-2-3
196 %%r b,-5 <<e-3 gis-5 d'>>4
197 r b,-5 <<e gis d'>>4-3-5
199 \once \property Voice.Fingering \set #'extra-offset = #'(0 . -1) %tweak
203 \once \property Voice.Fingering \set #'extra-offset = #'(0 . -1) %tweak
206 e'-[(<<a cis>>-)] r b, <<e gis d'>>4
214 bassTwo = \context Voice=bassTwo \notes\relative c{
225 middleDynamics = \context Dynamics=middle \notes{
226 \property Dynamics.TextScript \set #'padding = #-1 %tweak
235 \once\property Dynamics.Hairpin \set #'extra-offset = #'(0 . 2) %tweak
239 s32 s-"rall." s s s8 s4
242 \once\property Dynamics.Hairpin \set #'extra-offset = #'(1 . 0) %tweak
251 lowerDynamics = \context Dynamics=lower \notes{
254 s2-\sustainDown s8. s16-\sustainUp s4
256 s2-\sustainDown s8. s16-\sustainUp s4
259 \property Dynamics.pedalSustainStrings = #'("Ped." "*Ped." "*")
261 % grace destroys pedal-line-spanner?
262 % let's do manual tweak:
263 \once\property Dynamics.SustainPedal \set #'extra-offset = #'(10 . 0) %tweak
265 \once\property Dynamics.SustainPedal \set #'extra-offset = #'(16 . 0) %tweak
273 s32 s s s-\sustainDown
279 % ugh, I don't think that 'mixed should show last edge, but rather:
281 % Ped__________/\__________ *
283 % that's what gray wants, anyway.
285 \property Dynamics.pedalSustainStyle = #'mixed
287 s s-\sustainUp-\sustainDown s
289 \once \property Dynamics.pedalSustainStyle = #'text
293 \property Dynamics.pedalSustainStyle = #'mixed
295 s s-\sustainUp-\sustainDown s
297 \once \property Dynamics.pedalSustainStyle = #'text
303 \context PianoStaff <
304 \context Staff=treble <
308 \context Dynamics=middle <
311 \context Staff=bass <
316 \context Dynamics=lower <
323 \remove Bar_number_engraver
326 \type "Engraver_group_engraver"
328 \consists "Output_property_engraver"
329 minimumVerticalExtent = #'(-1 . 1)
331 pedalSustainStrings = #'("Ped." "*Ped." "*")
333 \consists "Piano_pedal_engraver"
334 \consists "Script_engraver"
335 \consists "Dynamic_engraver"
336 \consists "Text_engraver"
338 TextScript \override #'font-relative-size = #1
339 TextScript \override #'font-shape = #'italic
341 \consists "Skip_event_swallow_translator"
343 \consistsend "Axis_group_engraver"
349 VerticalAlignment \override #'forced-distance = #7
355 %%% LilyPond-indent-level:4
357 %% new-chords-done %%