Use scalar instead of embedded_scm for context mod overrides.
[lilypond/mpolesky.git] / ly / spanners-init.ly
blob7b26094e497fbbfdf81c6b5fe20cc271644344c0
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 % STOP: junkme!
22 cresc = {
23 #(ly:export (make-event-chord (list cr)))
24 \once \set crescendoText = \markup { \italic "cresc." }
25 \once \set crescendoSpanner = #'text
29 dim = {
30 #(ly:export (make-event-chord (list decr)))
31 \once \set decrescendoText = \markup { \italic "dim." }
32 \once \set decrescendoSpanner = #'text
35 enddim = {
36 #(ly:export (make-event-chord (list enddecr)))
37 % \unset decrescendoText
38 % \unset decrescendoSpanner
41 endcresc = {
42 #(ly:export (make-event-chord (list endcr)))
43 % \unset crescendoText
44 % \unset crescendoSpanner
47 %%%%%%%%%%%%%%%%
49 crescTextCresc = {
50 \set crescendoText = \markup { \italic "cresc." }
51 \set crescendoSpanner = #'text
52 \override DynamicTextSpanner #'style = #'dashed-line
55 dimTextDecresc = {
56 \set decrescendoText = \markup { \italic "decresc." }
57 \set decrescendoSpanner = #'text
58 \override DynamicTextSpanner #'style = #'dashed-line
61 dimTextDecr = {
62 \set decrescendoText = \markup { \italic "decr." }
63 \set decrescendoSpanner = #'text
64 \override DynamicTextSpanner #'style = #'dashed-line
67 dimTextDim = {
68 \set decrescendoText = \markup { \italic "dim." }
69 \set decrescendoSpanner = #'text
70 \override DynamicTextSpanner #'style = #'dashed-line
73 crescHairpin = {
74 \unset crescendoText
75 \unset crescendoSpanner
78 dimHairpin = {
79 \unset decrescendoText
80 \unset decrescendoSpanner
84 sustainOff = #(make-span-event 'SustainEvent STOP)
85 sustainOn = #(make-span-event 'SustainEvent START)
87 unaCorda = #(make-span-event 'UnaCordaEvent START)
88 treCorde = #(make-span-event 'UnaCordaEvent STOP)
90 sostenutoOn = #(make-span-event 'SostenutoEvent START)
91 sostenutoOff = #(make-span-event 'SostenutoEvent STOP)
93 %crescpoco = \set crescendoText = "cresc. poco a poco"
94 %decresc = \set crescendoText = "decr."
95 %dim = \set crescendoText = "dim."
97 newSpacingSection = #(make-event-chord (list (make-music 'SpacingSectionEvent)))