-
Notifications
You must be signed in to change notification settings - Fork 0
/
lilypond-piano-templates.el
executable file
·275 lines (254 loc) · 7.04 KB
/
lilypond-piano-templates.el
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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
;;; lilypond-piano-templates.el ---
;; Copyright (C) 2008 Shelagh Manton <shelagh.manton@gmail.com>
;; Author: Shelagh Manton <shelagh.manton@gmail.com>
;; Keywords:
;; This program 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 2
;; of the License, or (at your option) any later version.
;; This program 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 this program; if not, write to the Free Software
;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
;; 02111-1307, USA.
;;; Commentary:this file is an add-on for lilypond-skeletons.el.
;;; It will be loaded if the variable LilyPond-piano-templates-p is t(rue).
;;; Code:
;;; piano
(define-skeleton LilyPond-solo-piano
"Insert a simple piano staff."
nil
"\\version \"2.11.23\"" \n
"% Use convert-ly to update this file if the version is different to the lilypond you use." \n
"% For more information go to (info \"(lilypond)Piano music\"). Place cursor after the last" \n
"% parenthesis and C-x C-e." \n
\n
"global = {" \n
> "\\key "(skeleton-read "Key: ")\| "c "(skeleton-read "\\major or \\minor: ")\| " \\major" \n
> "\\time "(skeleton-read "Time, needs to be of form N/N: ")\| "4/4" \n
> "}" \n
> "upper = \\relative c'' {" \n
"\\global" \n
> _ \n
> "}" \n
\n
> " lower = \\relative c {" \n
"\\global"\n
> "INSERT NOTES" \n
> " }" \n
\n
"\\score {" \n
> "\\new PianoStaff <<" \n
> "\\set PianoStaff.instrumentName = \"Piano\"" \n
> "\\new Staff = \"upper\" \\upper" \n
> "\\new Staff = \"lower\" \\lower" \n
> ">>" \n
> "\\layout { }" \n
> "\\midi { }" \n
> "}" \n
)
;;;Piano and melody with lyrics
(define-skeleton LilyPond-piano-melody-lyrics
"Insert skeleton for melody with piano accompaniment."
nil
"\\version \"2.11.23\"" \n
"% Use convert-ly to update this file if the version is different to the lilypond you use." \n \n
"% For more information go to (info \"(lilypond)Piano music\"). Place cursor after the last" \n
"% parenthesis and C-x C-e." \n
\n
"global = {"\n
> "\\key "(skeleton-read "Key: ")\| "c "(skeleton-read "\\major or \\minor: ")\| " \\major" \n
> "\\time "(skeleton-read "Time, needs to be of form N/N: ")\| "4/4" \n
> "}"
\n
"melody = \\relative c'' {" \n
> "\\clef \"treble\""\n
> _ \n
> "}" \n
\n
"text = \\lyricmode {" \n
> "LYRICS" \n
> "}" \n
\n
"upper = \\relative c'' {" \n
> "\\clef \"treble\""\n
> "INSERT NOTES" \n
> "}" \n
\n
"lower = \\relative c {" \n
> "\\clef \"bass\""\n
> "INSERT NOTES" \n
> "}" \n
\n
"\\score {" \n
> "\\global" \n
> "<<" \n
> "\\new Voice = \"mel\" {" \n
> "\\autoBeamOff" \n
> "\\melody" \n
> "}" \n
\n
> "\\new Lyrics \\lyricsto mel \\text" \n
> "\\new PianoStaff <<" \n
> "\\new Staff = \"upper\" \\upper" \n
> "\\new Staff = \"lower\" \\lower" \n
> ">>" \n
> ">>" \n
\n
"\\layout {" \n
> "\\context { \\RemoveEmptyStaffContext }" \n
> "}" \n
\n
> "\\midi { }" \n
> "}" \n
)
;;;Piano centered lyrics
(define-skeleton LilyPond-piano-centered-lyrics
"Insert a skeleton for piano with centered lyrics"
nil
"\\version \"2.11.23\"" \n
"% Use convert-ly to update this file if the version is different to the lilypond you use." \n
"% For more information go to (info \"(lilypond)Piano music\"). Place cursor after the last" \n
"% parenthesis and C-x C-e." \n
\n
"global = {" \n
> "\\key "(skeleton-read "Key: ")\| "c "(skeleton-read "\\major or \\minor: ")\| " \\major" \n
> "\\time "(skeleton-read "Time, needs to be of form N/N: ")\| "4/4" \n
> "}" \n
\n
"upper = \\relative c'' {" \n
> "\\global" \n
> _ \n
> "}" \n
\n
"lower = \\relative c {" \n
> " \\global" \n
> "INSERT NOTES" \n
> "}" \n
\n
> "text = \\lyricmode {" \n
> "LYRICS" \n
> "}" \n
\n
"\\score {" \n
> "\\new GrandStaff <<" \n
> "\\new Staff = upper { \\new Voice = \"singer\" \\upper }" \n
> "\\new Lyrics \\lyricsto \"singer\" \\text" \n
> "\\new Staff = lower {" \n
> "\\clef bass" \n
> "\\lower" \n
> "}" \n
> ">>" \n
\n
"\\layout {" \n
> "\\context { \\GrandStaff \\accepts \"Lyrics\" }" \n
> "\\context { \\Lyrics \\consists \"Bar_engraver\" }" \n
> "}" \n
\n
> " \\midi { }" \n
> "}" \n
)
;;;Piano centered dynamics
(define-skeleton LilyPond-piano-centered-dynamics
"Insert skeleton of piano staff with centered dynamics"
"\\version \"2.11.23\"" \n
"% Use convert-ly to update this file if the version is different to the lilypond you use." \n \n
"% For more information go to (info \"(lilypond)Piano music\"). Place cursor after the last" \n
"% parenthesis and C-x C-e." \n
\n
"global = {" \n
> "\\key "(skeleton-read "Key: ")\|"c "(skeleton-read "\\major, \\minor or \\dorian etc: ")\| " \\major" \n
> "\\time "(skeleton-read "Time, needs to be of form N/N: ")\| "4/4" \n
> "}"
\n
"upper = \\relative c'' {" \n
> "\\clef treble" \n
> "\\global" \n
> _ \n
> "}" \n
\n
"lower = \\relative c {" \n
> "\\clef bass" \n
> "\\global" \n
> "INSERT NOTES" \n
> "}" \n
\n
"dynamics = {" \n
> "DYNAMICS % for example s2\\fff\\> s4 s\\!\\pp" \n
> "}" \n
\n
"pedal = {" \n
> "s2\\sustainDown s2\\sustainUp" \n
> "}" \n
\n
"\\score {" \n
> "\\new PianoStaff <<" \n
> "\\new Staff = \"upper\" \\upper" \n
> "\\new Dynamics = \"dynamics\" \\dynamics" \n
> "\\new Staff = \"lower\" <<" \n
> "\\clef bass" \n
> "\\lower" \n
> ">>" \n
> "\\new Dynamics = \"pedal\" \\pedal" \n
> ">>" \n
"\\layout {" \n
> "\\context {" \n
> "\\type \"Engraver_group\"" \n
> "\\name Dynamics" \n
> "\\alias Voice % So that \\cresc works, for example." \n
> "\\consists \"Output_property_engraver\"" \n
\n
> "\\override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1)" \n
> "pedalSustainStrings = #'(\"Ped.\" \"*Ped.\" \"*\")" \n
> "pedalUnaCordaStrings = #'(\"una corda\" \"\" \"tre corde\")" \n
\n
> "\\consists \"Piano_pedal_engraver\"" \n
> "\\consists \"Script_engraver\"" \n
> "\\consists \"Dynamic_engraver\"" \n
> "\\consists \"Text_engraver\"" \n
\n
> "\\override TextScript #'font-size = #2" \n
> "\\override TextScript #'font-shape = #'italic" \n
> "\\override DynamicText #'extra-offset = #'(0 . 2.5)" \n
> "\\override Hairpin #'extra-offset = #'(0 . 2.5)" \n
\n
> "\\consists \"Skip_event_swallow_translator\"" \n
\n
> "\\consists \"Axis_group_engraver\"" \n
> "}" \n
\n
"\\context {" \n
> "\\PianoStaff" \n
> "\\accepts Dynamics" \n
> "\\override VerticalAlignment #'forced-distance = #7" \n
> "}" \n
> "}" \n
> "}" \n
\n
"\\score {" \n
> "\\unfoldRepeats { " \n
> "\\new PianoStaff <<" \n
> "\\new Staff = \"upper\" << \\upper \\dynamics \\pedal >>" \n
> "\\new Staff = \"lower\" << \\lower \\dynamics \\pedal >>" \n
> "\\new Dynamics = \"pedal\" \\pedal" \n
> ">>" \n
\n
"\\midi {" \n
> "\\context {" \n
> "\\type \"Performer_group\"" \n
> "\\name Dynamics" \n
> "\\consists \"Piano_pedal_performer\"" \n
> "}" \n
\n
"\\context {" \n
> "\\PianoStaff" \n
> "\\accepts Dynamics" \n
> "}" \n
> "}" \n
> "}" \n
)
(provide 'lilypond-piano-templates)
;;; lilypond-piano-templates.el ends here