]> git.donarmstrong.com Git - lilypond.git/blob - ly/spanners-init.ly
* lily/main.cc (LY_DEFINE): add gmane address.
[lilypond.git] / ly / spanners-init.ly
1 \version "2.6.0"
2
3 startGroup = #(make-span-event 'NoteGroupingEvent START)
4 stopGroup = #(make-span-event 'NoteGroupingEvent STOP)
5
6
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) 
11
12
13 startTextSpan = #(make-span-event 'TextSpanEvent START)
14 stopTextSpan = #(make-span-event 'TextSpanEvent STOP)
15
16
17 startTrillSpan = #(make-span-event 'TrillSpanEvent START)
18 stopTrillSpan = #(make-span-event 'TrillSpanEvent STOP)
19
20
21 % STOP: junkme!
22 cresc =  {
23   #(ly:export (make-event-chord (list cr)))
24   \set crescendoText = \markup { \italic "cresc." }
25   \set crescendoSpanner = #'dashed-line
26 }
27
28
29 dim =  {
30   #(ly:export (make-event-chord (list decr)))
31
32   \set decrescendoText = \markup { \italic "dim." }
33   \set decrescendoSpanner = #'dashed-line
34 }
35
36 enddim =  {
37   #(ly:export (make-event-chord (list enddecr)))
38   \unset decrescendoText 
39   \unset decrescendoSpanner 
40 }
41
42 % ah, this is handy: maybe drop resetting of properties in
43 % dynamic-engraver ?
44 endcresc =  {
45   #(ly:export (make-event-chord (list endcr)))
46   \unset crescendoText 
47   \unset crescendoSpanner 
48 }
49
50 %%%%%%%%%%%%%%%%
51
52 setTextCresc = {
53     \set crescendoText = \markup { \italic "cresc." }
54     \set crescendoSpanner = #'dashed-line
55 }
56
57 setTextDecresc = {
58     \set decrescendoText = \markup { \italic "decr." }
59     \set decrescendoSpanner = #'dashed-line
60 }
61
62 setTextDim = {
63     \set decrescendoText = \markup { \italic "dim." }
64     \set decrescendoSpanner = #'dashed-line
65 }
66 setHairpinCresc = {
67     \unset crescendoText 
68     \unset crescendoSpanner 
69 }
70 setHairpinDecresc = {
71     \unset decrescendoText 
72     \unset decrescendoSpanner 
73 }
74 setHairpinDim = {
75     \unset decrescendoText 
76     \unset decrescendoSpanner 
77 }
78
79
80
81 % better name sustainstart/stop? 
82 sustainUp = #(make-span-event 'SustainEvent STOP)
83 sustainDown = #(make-span-event 'SustainEvent START)
84
85 unaCorda = #(make-span-event 'UnaCordaEvent START)
86 treCorde = #(make-span-event 'UnaCordaEvent STOP)
87
88 sostenutoDown = #(make-span-event 'SostenutoEvent START)
89 sostenutoUp = #(make-span-event 'SostenutoEvent STOP)
90
91 %crescpoco = \set crescendoText = "cresc. poco a poco"
92 %decresc = \set crescendoText = "decr."
93 %dim = \set crescendoText = "dim."