-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy patheasy-cross-staff-example-3.ly
189 lines (154 loc) · 6.13 KB
/
easy-cross-staff-example-3.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
% set autoformat off
%
% Created (24/01/2020) by Paolo-Prete.
% This file is part of Spontini-Editor project.
%
% Spontini-Editor is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% Spontini-Editor is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with Spontini-Editor. If not, see <http://www.gnu.org/licenses/>.
%
\version "2.19.83"
\include "../lib/ly/jssvg.ly"
\include "../lib/ly/tabular-functions.ly"
\include "../lib/ly/oso-padding.ly"
#(set! showEditorStuff "true")
upper = {
\time 3/4
\override Score.DynamicLineSpanner.outside-staff-padding = 0
\override Score.TextScript.font-family = #'typewriter
\override Score.TextScript.avoid-slur = #'ignore
\set Score.pedalSustainStyle = #'mixed
\override Score.SostenutoPedal.font-family = #'typewriter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#(define lU1 #{
\resetOSPositions
\setOSPosition #UP 3 TupletBracket
\setOSPosition #UP 4 Staff.OttavaBracket
\setOSPosition #UP 2 Slur
\once \override TupletBracket.positions = #'(2 . 0)
\jsOSOPadder "106" "pads" #'(0 0.04 0.047 0) TupletBracket
\jsOSOPadder "82" "pads" #'(0 4.945 0.012 0) Staff.OttavaBracket
#})
#(define lU2 #{
\jsOSOPadder "84" "pads" #'(1.571 0 0 0)^\OSBox
#})
#(define lD1 #{
\setOSPosition #DOWN 1 DynamicLineSpanner
#})
#(define lD2 #{
\jsOSOPadder "93" "pads" #'(0.107 0 0 0) _\mf\<
\jsOSOPadder "94" "pads" #'() _\sustainOn
\jsOSOPadder "95" "pads" #'(0 0 0.012 0) _\sostenutoOn
\jsOSOPadder "96" "pads" #'(0 0 0 0) _"Use pedals with care!"
#})
\easyCrossStaff %TMODE
{ \CS $lU1 \tupletUp 3/2 { \ottava #1 <c'''' e''''>8[( $lU2 \CS s \CS s } \CS e''''4) \ottava #0 \CS r \CS }
{ \CS $lD1 \hiddenTuplet 3/2 { s8 $lD2 \CS c'' \CS g''] } \CS s4\ff\sustainOff\sostenutoOff \CS s \CS }
#'( \CS C \CS - \CS - \CS - \CS - \CS )
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#(define lU1 #{
\resetOSPositions
\once \override TupletBracket.positions = #'(0 . 2)
\setOSPosition #UP 2 TupletBracket
\setOSPosition #UP 3 Staff.OttavaBracket
\jsOSOPadder "97" "pads" #'(0 6.505 0 0.006) TupletBracket
\jsOSOPadder "98" "pads" #'() Staff.OttavaBracket
#})
#(define lU2 #{
\jsOSOPadder "103" "pads" #'(2.162 10.172 0 0)^\OSBox
\jsShape "108" "cpts" #'((-0.146 . -4) (6.164 . -11.768) (1.038 . -7.473) (0.393 . -4.243)) _(
#})
#(define lD1 #{
\setOSPosition #DOWN 1 DynamicLineSpanner
#})
#(define lD2 #{
\jsOSOPadder "99" "pads" #'() _\mf\<
\jsOSOPadder "100" "pads" #'() _\sostenutoOn
\jsOSOPadder "101" "pads" #'() _\sustainOn
\jsOSOPadder "102" "pads" #'(0 0 0.052 0) _"Use pedals with care!"
#})
\easyCrossStaff %TMODE
{ \CS $lU1 \tupletUp 3/2 { \ottava #1 s8 [ $lU2 \CS g''' \CS g'''] } \CS e''''4) \ottava #0 \CS r \CS }
{ \CS $lD1 \hiddenTuplet 3/2 { c'''8 $lD2 \CS c'' \CS s } \CS s4\ff\sustainOff\sostenutoOff \CS s \CS }
#'( \CS U \CS - \CS - \CS N \CS - \CS )
\break
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#(define lU1 #{
\resetOSPositions
\once \override TupletBracket.positions = #'(0 . 0)
\setOSPosition #UP 3 TupletBracket
\setOSPosition #UP 4 Staff.OttavaBracket
\setOSPosition #UP 2 Slur
\jsOSOPadder "109" "pads" #'(1.531 0 0.061 0) TupletBracket
\jsOSOPadder "110" "pads" #'(2.054 0 0 0) Staff.OttavaBracket
#})
#(define lU2 #{
\jsOSOPadder "111" "pads" #'(3.405 8.204 0.134 0.061) ^\OSBox
#})
#(define lD1 #{
\setOSPosition #DOWN 1 DynamicLineSpanner
#})
#(define lD2 #{
\jsOSOPadder "112" "pads" #'(0.047 0 0 0) _\mf\<
\jsOSOPadder "113" "pads" #'(0.251 0 0 0) _\sustainOn
\jsOSOPadder "114" "pads" #'() _\sostenutoOn
\jsOSOPadder "115" "pads" #'(0 0 0 0) _"Use pedals with care!"
#})
$(set! crossStaffUDBeamThreeshold 6)
\easyCrossStaff %TMODE
{ \CS $lU1 \tupletUp 3/2 { \ottava #1 g'''8 ^( $lU2 \CS s \CS <g'' b''>} \CS e''''4) \ottava #0 \CS r \CS }
{ \CS $lD1 \hiddenTuplet 3/2 { s8 [ $lD2 \CS c'' \CS g''] } \CS s4\ff\sustainOff\sostenutoOff \CS s \CS }
#'( \CS D \CS - \CS - \CS N \CS - \CS )
$(set! crossStaffUDBeamThreeshold 0)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#(define lU1 #{
\resetOSPositions
\setOSPosition #UP 3 Staff.OttavaBracket
\setOSPosition #UP 2 Slur
\jsOSOPadder "117" "pads" #'(0 0 0.096 0) Staff.OttavaBracket
#})
#(define lU2 #{
\jsOSOPadder "118" "pads" #'(0.966 17.772 0 0) ^\OSBox
^(
#})
#(define lD1 #{
\setOSPosition #DOWN 1 TupletBracket
\setOSPosition #DOWN 2 DynamicLineSpanner
\once \override TupletBracket.positions = #'(0 . -3)
\jsOSOPadder "123" "pads" #'(0.257 0 0.291 0) TupletBracket
#})
#(define lD2 #{
\jsOSOPadder "119" "pads" #'() _\mf\<
\jsOSOPadder "120" "pads" #'() _\sustainOn
\jsOSOPadder "121" "pads" #'() _\sostenutoOn
\jsOSOPadder "122" "pads" #'(0.045 0 0 0) _"Use pedals with care!"
#})
\easyCrossStaff %TMODE
{ \CS $lU1 \hiddenTuplet 3/2 { \ottava #1 c''''8 $lU2 \CS s \CS s } \CS e''''4) \ottava #0 \CS r \CS }
{ \CS $lD1 \tupletDown 3/2 { s8 [ $lD2 \CS c'' \CS g''] } \CS s4\ff\sustainOff\sostenutoOff \CS s \CS }
#'( \CS D \CS - \CS - \CS N \CS - \CS )
\break
}
lower = {}
\layout {
\context {
\Staff
\override StaffSymbol.output-attributes.gridify = $showEditorStuff
\override StaffSymbol.output-attributes.gridstep = "1"
\override StaffSymbol.output-attributes.gridcolor = "#f0eee9"
\override StaffSymbol.staff-space = 0.85
}
}
\include "../lib/ly/piano-template.ly"