Merge commit 'origin' into release/unstable
[lilypond/mpolesky.git] / ly / spanners-init.ly
blob6ebb6fbdbecf7d29c14a63d75fe4b3df46be1a78
1 \version "2.12.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)
13 startTextSpan = #(make-span-event 'TextSpanEvent START)
14 stopTextSpan = #(make-span-event 'TextSpanEvent STOP)
17 startTrillSpan = #(make-span-event 'TrillSpanEvent START)
18 stopTrillSpan = #(make-span-event 'TrillSpanEvent STOP)
21 episemInitium = #(make-span-event 'EpisemaEvent START)
22 episemFinis = #(make-span-event 'EpisemaEvent STOP)
25 cresc = #(make-music 'CrescendoEvent 'span-direction START 'span-type 'text 'span-text "cresc.")
26 endcresc = #(make-span-event 'CrescendoEvent STOP)
27 dim = #(make-music 'DecrescendoEvent 'span-direction START 'span-type 'text 'span-text "dim.")
28 enddim = #(make-span-event 'DecrescendoEvent STOP)
29 decresc = #(make-music 'DecrescendoEvent 'span-direction START 'span-type 'text 'span-text "decresc.")
30 enddecresc = #(make-span-event 'DecrescendoEvent STOP)
32 % Deprecated functions:
33 % TODO: DEPRECATED_2_13_19
34 deprecatedcresc = {
35 #(ly:export (make-event-chord (list cr)))
36 \once \set crescendoText = \markup { \italic "cresc." }
37 \once \set crescendoSpanner = #'text
41 deprecateddim = {
42 #(ly:export (make-event-chord (list decr)))
43 \once \set decrescendoText = \markup { \italic "dim." }
44 \once \set decrescendoSpanner = #'text
47 deprecatedenddim = {
48 #(ly:export (make-event-chord (list enddecr)))
49 % \unset decrescendoText
50 % \unset decrescendoSpanner
53 deprecatedendcresc = {
54 #(ly:export (make-event-chord (list endcr)))
55 % \unset crescendoText
56 % \unset crescendoSpanner
60 %%%%%%%%%%%%%%%%
62 crescTextCresc = {
63 \set crescendoText = \markup { \italic "cresc." }
64 \set crescendoSpanner = #'text
67 dimTextDecresc = {
68 \set decrescendoText = \markup { \italic "decresc." }
69 \set decrescendoSpanner = #'text
72 dimTextDecr = {
73 \set decrescendoText = \markup { \italic "decr." }
74 \set decrescendoSpanner = #'text
77 dimTextDim = {
78 \set decrescendoText = \markup { \italic "dim." }
79 \set decrescendoSpanner = #'text
82 crescHairpin = {
83 \unset crescendoText
84 \unset crescendoSpanner
87 dimHairpin = {
88 \unset decrescendoText
89 \unset decrescendoSpanner
93 sustainOff = #(make-span-event 'SustainEvent STOP)
94 sustainOn = #(make-span-event 'SustainEvent START)
96 unaCorda = #(make-span-event 'UnaCordaEvent START)
97 treCorde = #(make-span-event 'UnaCordaEvent STOP)
99 sostenutoOn = #(make-span-event 'SostenutoEvent START)
100 sostenutoOff = #(make-span-event 'SostenutoEvent STOP)
102 %crescpoco = \set crescendoText = "cresc. poco a poco"
103 %decresc = \set crescendoText = "decr."
104 %dim = \set crescendoText = "dim."
106 newSpacingSection = #(make-event-chord (list (make-music 'SpacingSectionEvent)))
108 breakDynamicSpan = #(make-music 'BreakDynamicSpanEvent)