Massive changes - see ChangeLog.
[lilypond.git] / ly / spanners-init.ly
blobc7fd8f93cf2b07065d16b5f14312e4a02d5b9b30
1 \version "1.9.0"
3 startGroup = #(make-span-event 'NoteGroupingEvent START)
4 stopGroup = #(make-span-event 'NoteGroupingEvent STOP)
7 cr = #(make-span-event 'CrescendoEvent START)
8 decr = #(make-span-event 'DecrescendoEvent START)
9 enddecr = #(make-span-event 'DecrescendoEvent STOP)
10 endcr = #(make-span-event 'CrescendoEvent STOP)
12 %% TODO: remove for 2.0
13 rc = \endcr
14 rced = \enddecr
16 startTextSpan = #(make-span-event 'TextSpanEvent START)
17 stopTextSpan = #(make-span-event 'TextSpanEvent STOP)
19 cresc = \notes {
20 #(ly:export (make-event-chord (list cr)))
21 \property Voice.crescendoText = \markup { \italic "cresc." }
22 \property Voice.crescendoSpanner = #'dashed-line
25 % ah, this is handy: maybe drop resetting of properties in
26 % dynamic-engraver ?
27 endcresc = \notes {
28 #(ly:export (make-event-chord (list rc)))
29 \property Voice.crescendoText \unset
30 \property Voice.crescendoSpanner \unset
33 dim = \notes {
34 #(ly:export (make-event-chord (list decr)))
36 \property Voice.decrescendoText = \markup { \italic "dim." }
37 \property Voice.decrescendoSpanner = #'dashed-line
40 enddim = \notes {
41 #(ly:export (make-event-chord (list rced)))
42 \property Voice.decrescendoText \unset
43 \property Voice.decrescendoSpanner \unset
48 cresc = \spanevent \start "crescendo"
49 endcresc = \spanevent \stop "crescendo"
53 % better name sustainstart/stop?
54 sustainUp = #(make-span-event 'SustainEvent STOP)
55 sustainDown = #(make-span-event 'SustainEvent START)
57 unaCorda = #(make-span-event 'UnaCordaEvent START)
58 treCorde = #(make-span-event 'UnaCordaEvent STOP)
60 sostenutoDown = #(make-span-event 'SostenutoEvent START)
61 sostenutoUp = #(make-span-event 'SostenutoEvent STOP)
63 %crescpoco = \property Voice.crescendoText = "cresc. poco a poco"
64 %decresc = \property Voice.crescendoText = "decr."
65 %dim = \property Voice.crescendoText = "dim."