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 = \new Voice \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." }
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~
65 \property Voice.Stem \override #'stroke-style = #"grace"
71 \property Voice.Stem \set #'direction = #0
76 cis32[ a-1 fis-4 dis] cis[ a fis)-2]
77 % the small grace in lower staff comes after us
80 \property Voice.Stem \revert #'stroke-style
88 r8 <a' a,>8(\mf <gis gis,> <fis fis,>
91 \property Voice.Fingering \set #'direction = #1
93 % Manual fix for collision with slur
94 \property Voice.Fingering \set #'extra-offset = #'(0 . 1) %tweak
95 <gis gis,> <fis fis,> e)-1-4-5 r
98 r <a a,>8(\mf <gis gis,> <fis fis,>
99 <gis gis,> <fis fis,> e) r
105 trebleTwo = \new Voice \notes\relative c''{
109 \property Voice.Fingering \set #'direction = #-1
110 \property Voice.Fingering \set #'extra-offset = #'(0 . 1.2)
116 <cis' a fis dis>4\arpeggio
120 %%<cis e,>8[( <b-3 d,-1>
121 <cis e,>8[( <b d,>-3-1
123 %%<a-2 cis,-1>)] cis4. d4
124 <a cis,>)]-2-1 cis4. d4
130 bass = \new Voice \notes\relative c{
134 % Allow ugly (highly blown-up) slurs
135 \property Voice.Slur \override #'beautiful = #5.0 %tweak
136 \property Voice.Slur \override #'attachment-offset = #'((0 . 3) . (0 . -4)) %tweak
141 r8. e,16(\f_2 <a a,>8[ <b b,>]
144 \translator Staff=treble
146 \property Voice.Slur \override #'attachment = #'(stem . stem) %tweak
147 <a'' eis cis>4)\arpeggio
149 \property Voice.Slur \revert #'attachment %tweak
150 \translator Staff=bass
153 \property Voice.Slur \revert #'y-free %tweak
154 \property Voice.Slur \override #'y-free = #0.1 %tweak
155 \property Voice.Slur \revert #'attachment-offset %tweak
156 \property Voice.Slur \override #'attachment-offset = #'((0 . 3) . (0 . 8)) %tweak
157 r8. cis,,16( <fis fis,>8 <gis gis,>
160 \property Voice.Stem \set #'length = #5 %tweak
162 \translator Staff=treble
164 \property Voice.Stem \revert #'length %tweak
165 \property Voice.Stem \revert #'direction
166 \property Voice.Stem \override #'direction = #-1
167 <a' fis cis>)\arpeggio
168 \translator Staff=bass
169 \property Voice.Stem \revert #'direction
173 \property Voice.Slur \revert #'beautiful %tweak
174 \property Voice.Slur \revert #'attachment-offset %tweak
180 %urg: staff-change: ! on dis
181 <cis'' a fis dis!>\arpeggio
185 \property Voice.Stem \override #'stroke-style = #"grace"
194 \property Voice.Stem \revert #'stroke-style
202 \property Voice.Fingering \set #'direction = #-1
204 %%a,8 e'[-5(<a-2 cis-3>])
205 a,8 e'[-5(<a cis>])-2-3
206 %%r b,-5 <e-3 gis-5 d'>4
207 r b,-5 <e gis d'>4-3-5
209 \once \property Voice.Fingering \set #'extra-offset = #'(0 . -1) %tweak
213 \once \property Voice.Fingering \set #'extra-offset = #'(0 . -1) %tweak
216 e'[(<a cis>)] r b, <e gis d'>4
224 bassTwo = \new Voice \notes\relative c{
235 middleDynamics = \notes{
236 \property Dynamics.TextScript \set #'padding = #-1 %tweak
242 \property Voice.Stem \override #'stroke-style = #"grace"
247 \once\property Dynamics.Hairpin \set #'extra-offset = #'(0 . 2) %tweak
251 \property Voice.Stem \revert #'stroke-style }
253 s32 s-"rall." s s s8 s4
256 \once\property Dynamics.Hairpin \set #'extra-offset = #'(1 . 0) %tweak
265 lowerDynamics = \notes{
268 s2\sustainDown s8. s16\sustainUp s4
270 s2\sustainDown s8. s16\sustainUp s4
273 \property Dynamics.pedalSustainStrings = #'("Ped." "*Ped." "*")
275 % grace destroys pedal-line-spanner?
276 % let's do manual tweak:
277 \once\property Dynamics.SustainPedal \set #'extra-offset = #'(10 . 0) %tweak
279 \once\property Dynamics.SustainPedal \set #'extra-offset = #'(16 . 0) %tweak
284 \property Voice.Stem \override #'stroke-style = #"grace"
289 s32 s s s\sustainDown
291 \property Voice.Stem \revert #'stroke-style }
297 % ugh, I don't think that 'mixed should show last edge, but rather:
299 % Ped__________/\__________ *
301 % that's what gray wants, anyway.
303 \property Dynamics.pedalSustainStyle = #'mixed
305 s s\sustainUp\sustainDown s
307 \once \property Dynamics.pedalSustainStyle = #'text
311 \property Dynamics.pedalSustainStyle = #'mixed
313 s s\sustainUp\sustainDown s
315 \once \property Dynamics.pedalSustainStyle = #'text
321 \context PianoStaff <<
322 \context Staff=treble <<
329 \context Staff=bass <<
341 \remove Bar_number_engraver
344 \type "Engraver_group_engraver"
346 \consists "Output_property_engraver"
347 minimumVerticalExtent = #'(-1 . 1)
349 pedalSustainStrings = #'("Ped." "*Ped." "*")
351 \consists "Piano_pedal_engraver"
352 \consists "Script_engraver"
353 \consists "Dynamic_engraver"
354 \consists "Text_engraver"
356 TextScript \override #'font-relative-size = #1
357 TextScript \override #'font-shape = #'italic
359 \consists "Skip_event_swallow_translator"
361 \consistsend "Axis_group_engraver"
367 VerticalAlignment \override #'forced-distance = #7
373 %%% LilyPond-indent-level:4
375 %% new-chords-done %%