-
Notifications
You must be signed in to change notification settings - Fork 0
/
articulation.ily
65 lines (60 loc) · 2.5 KB
/
articulation.ily
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
pizz = ^\markup { pizz. }
arco = ^\markup { arco }
arcobrac = ^\markup { "[arco]" }
spont = ^\markup { "s. pont." }
sulpont = ^\markup { "sul pont." }
arcosulpont = ^\markup { \override #'(baseline-skip . 2.5)
{ \column { arco "sul pont." } } }
nat = ^\markup { nat. }
accel = ^\markup { "accel." }
acel = ^\markup { "acelerando" }
atempo = ^\markup { "a tempo" }
atpo = ^\markup { "a tpo." }
piup = _\markup { \italic "più" \dynamic p }
piuf = _\markup { \italic "più" \dynamic f }
%%% double dot staccato AKA double tongue stacatto
%%% ( following http://lsr.dsi.unimi.it/LSR/Snippet?id=772 )
staccTwo =
#(define-music-function (parser location dots) (integer?)
(let ((script (make-music 'ArticulationEvent
'articulation-type "staccato")))
(set! (ly:music-property script 'tweaks)
(acons 'stencil
(lambda (grob)
(let ((stil (ly:script-interface::print grob)))
(let loop ((count (1- dots)) (new-stil stil))
(if (> count 0)
(loop (1- count)
(ly:stencil-combine-at-edge new-stil X RIGHT stil 0.2))
(ly:stencil-aligned-to new-stil X CENTER)))))
(ly:music-property script 'tweaks)))
script))
dob = \downbow
upb = \upbow
harmonicPitch = #(define-music-function (parser location note)
(ly:music?)
#{
\once \override Stem #'transparent = ##t
\once \override Flag #'transparent = ##t
%%\override ParenthesesItem #'padding = #0.1
%%\override ParenthesesItem #'font-size = #1
\once \override Voice.Stem #'stencil = ##f
\once \override Voice.NoteHead #'font-size = #-4
\parenthesize $note
#})
ritAtempoText =
{
\override TextSpanner #'(bound-details left text) = \markup { \bold "rit. " }
\override TextSpanner #'(bound-details right text) = \markup { \bold " a tempo" }
\override TextSpanner #'(bound-details right-broken text) = ##f
\override TextSpanner #'(bound-details left-broken text) = ##f
\override TextSpanner #'(bound-details right padding) = #0.5
}
accelAtempoText =
{
\override TextSpanner #'(bound-details left text) = \markup { \bold "accelerando " }
\override TextSpanner #'(bound-details right text) = \markup { \bold " a tempo" }
\override TextSpanner #'(bound-details right-broken text) = ##f
\override TextSpanner #'(bound-details left-broken text) = ##f
\override TextSpanner #'(bound-details right padding) = #0.5
}