-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGlobal.ly
87 lines (69 loc) · 2.06 KB
/
Global.ly
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#(ly:set-option 'midi-extension "mid")
rit = \override TextSpanner #'(bound-details left text) = "rit."
pocoRit = \tempo \markup{\small \italic "poco rit"}
o = #(let ((m (make-articulation "flageolet")))
(set! (ly:music-property m 'tweaks) (acons 'font-size -3
(ly:music-property m 'tweaks)))
m)
lv = \laissezVibrer
% qd = \quoteDuring
arpUp = \arpeggioArrowUp
arpDown = \arpeggioArrowDown
triangle = \once \override NoteHead.style = #'triangle
cross = \once \override NoteHead.style = #'cross
doubleBar = \bar "||"
finalBar = \bar "|."
%%%%various abbreviations
gliss = \glissando
treble = \clef treble
bass = \clef bass
arp = \arpeggio
%shortcut for quote during
Q = #(define-music-function (parser location inst music) (string? ly:music?)
#{
\quoteDuring $inst { $music }
#}
)
%quote during And switch instrument [NOT WORKING]
QQ = #(define-music-function (parser location inst music) (string? ly:music?)
#{
\instrumentSwitch $inst \quoteDuring $inst { $music }
#}
)
hiddenTempo = #(define-music-function (parser location bpm) (number?)
#{
\once \set Score.tempoHideNote = ##t \tempo 4 = #bpm
#}
)
ossia = #(define-music-function (parser location staffname music) (string? ly:music?)
#{
\new Staff = "ossia" \with {alignAboveContext = $staffname } % firstClef = ##f }
{ $music }
#}
)
inst = #(define-music-function (parser location staffname music) (string? ly:music?)
#{
\context Staff = $staffname
{ $music }
#}
)
caesura = {\override BreathingSign.text = \markup {
\override #'(direction . 1)
\override #'(baseline-skip . 1.8)
\dir-column {
\translate #'(0.155 . 0)
\center-align \musicglyph #"scripts.caesura.curved"
\center-align \musicglyph #"scripts.ufermata"
}
}
\breathe }
arpeggioArrowDown = {
\revert PianoStaff.Arpeggio.stencil
\revert PianoStaff.Arpeggio.X-extent
\override PianoStaff.Arpeggio.arpeggio-direction = #DOWN
}
arpeggioArrowUp = {
\revert PianoStaff.Arpeggio.stencil
\revert PianoStaff.Arpeggio.X-extent
\override PianoStaff.Arpeggio.arpeggio-direction = #UP
}