1 ;; Accordion registration is tricky, partly because no two instruments
2 ;; offer the same registers. In particular bass registers are not
3 ;; standardized at all and often left unspecified (orchestra scores
4 ;; don't use bass notes anyway).
6 ;; registration is indicated by using a control sequence name
7 ;; indicating the register set as either a markup function or a music
8 ;; function, taking a string as argument. The music function is a
9 ;; standalone music event since register changes usually occur before
10 ;; note onset. It is currently implemented as a text superscript on
11 ;; an empty chord but could conceivably become some kind of per-staff
12 ;; rehearsal mark at one point of time.
14 (define-module (scm accreg))
16 (use-modules (lily) (srfi srfi-1) (ice-9 optargs))
18 (defmacro* define-register-set (set-symbol doc #:optional definition)
19 "Defines markup command named with @var{set-symbol} for creating
20 accordion register markups as well as a music function of the same
23 @var{doc} is the optional documentation string followed by the actual
24 @var{definition}. See existing definitions in @file{scm/accreg.scm}
27 (define-markup-command (,set-symbol layout props name) (string?)
28 #:properties (translate-scaled-markup)
29 #:category accordion-registers
30 ;; It would be nice to generate the documentation string
31 ;; automatically containing all possible registrations but this
32 ;; is a hen-and-egg problem. When the macro is being executed,
33 ;; the register definition has not yet been evaluated. It
34 ;; would be feasible to not ever evaluate it and consider it
35 ;; final. But that seems like a somewhat unfriendly interface.
36 ,(if definition doc "Undocumented.")
37 (let* ((instrument ,(or definition doc))
39 (ly:assoc-get name (ly:assoc-get 'register instrument)))
40 (reedbanks (ly:assoc-get 'reedbank instrument)))
43 (make-general-align-markup
48 #:musicglyph "accordion.dot"))
50 (ly:assoc-get 'glyph instrument))
51 (or (ly:assoc-get 'dots register)
52 (append-map (lambda (x)
54 (ly:assoc-get x reedbanks)))
55 (ly:assoc-get 'reedbanks register))))))))
57 (define-public ,set-symbol
58 (define-music-function (parser position register)
60 ,(format #f "Equivalent to @code{<>^\\markup \\~a@var{REGISTER}}."
69 (,(string->symbol (format #f "make-~a-markup" set-symbol)) register))))))))
72 (define-register-set discant
73 "@code{\\discant @var{name}} generates a discant accordion register
78 #(use-modules (scm accreg))
80 is required near the top of your input file.
82 The register names in the default @code{\\discant} register set have
83 modeled after numeric Swiss notation like depicted in
84 @uref{http://de.wikipedia.org/wiki/Register_%28Akkordeon%29}, omitting
85 the slashes and dropping leading zeros.
87 The string @var{name} is basically a three-digit number with the
88 lowest digit specifying the number of 16' reeds, the tens the number
89 of 8' reeds, and the hundreds specifying the number of 4' reeds.
90 Without modification, the specified number of reeds in 8' is centered
91 in the symbol. Newer instruments may have registrations where 8' can
92 be used either within or without a tone chamber, @q{cassotto}.
93 Notationally, the central dot then indicates use of cassotto. One can
94 suffix the tens' digits @samp{1} and @samp{2} with @samp{+} or
95 @samp{-} to indicate clustering the dots at the right or left
96 respectively rather than centered.
101 #(use-modules (scm accreg))
105 \"\\\\discant #\\\"1\\\"\"
108 \"\\\\discant #\\\"120\\\"\"
112 \"\\\\discant #\\\"1+0\\\"\"
115 \"\\\\discant #\\\"131\\\"\"
120 '((glyph . "accordion.discant")
124 (MM (dots (1 . 1.5)))
125 (MMM (dots (-1 . 1.5)))
126 (H (dots (0 . 2.5))))
130 ("11" (reedbanks L M))
131 ("1+0" (reedbanks MM))
132 ("1+1" (reedbanks MM L))
133 ("1-0" (reedbanks MMM))
134 ("1-1" (reedbanks MMM L))
135 ("20" (reedbanks MMM MM))
136 ("21" (reedbanks MMM MM L))
137 ("2+0" (reedbanks MM M))
138 ("2+1" (reedbanks MM M L))
139 ("2-0" (reedbanks MMM M))
140 ("2-1" (reedbanks MMM M L))
141 ("30" (reedbanks MMM MM M))
142 ("31" (reedbanks MMM MM M L))
143 ("100" (reedbanks H))
144 ("101" (reedbanks H L))
145 ("110" (reedbanks H M))
146 ("111" (reedbanks H L M))
147 ("11+0" (reedbanks H MM))
148 ("11+1" (reedbanks H MM L))
149 ("11-0" (reedbanks H MMM))
150 ("11-1" (reedbanks H MMM L))
151 ("120" (reedbanks H MMM MM))
152 ("121" (reedbanks H MMM MM L))
153 ("12+0" (reedbanks H MM M))
154 ("12+1" (reedbanks H MM M L))
155 ("12-0" (reedbanks H MMM M))
156 ("12-1" (reedbanks H MMM M L))
157 ("130" (reedbanks H MMM MM M))
158 ("131" (reedbanks H MMM MM M L)))))
160 (define-register-set stdBass
161 "@code{\\stdBass @var{name}} generates a standard bass accordion
164 To make it available,
166 #(use-modules (scm accreg))
168 is required near the top of your input file.
170 The default bass register definitions have been modeled after the
171 article @uref{http://www.accordions.com/index/art/stradella.shtml}
172 originally appearing in Accord Magazine.
174 The underlying register model is
179 \\new Staff \\with { \\omit TimeSignature }
180 { <c' c' c''>\\glissando <f' f' f''>
181 <fis fis' fis''>\\glissando <b b'b''> }
182 \\new Staff \\with { \\omit TimeSignature }
184 <c, c>\\glissando <f, f>
185 <fis, fis>\\glissando <b, b>
190 This kind of overlapping arrangement is common for Italian instruments
191 though the exact location of the octave breaks differ.
193 When not composing for a particular target instrument, using the five
194 reed definitions makes more sense than using a four reed layout: in
195 that manner, the @samp{Master} register is unambiguous. This is
196 rather the rule in literature bothering about bass registrations at
199 Available registrations are
202 #(use-modules (scm accreg))
205 \\stdBass #\"Soprano\"
206 \"\\\\stdBass #\\\"Soprano\\\"\"
209 \"\\\\stdBass #\\\"Alto\\\"\"
212 \"\\\\stdBass #\\\"Tenor\\\"\"
214 \\stdBass #\"Master\"
215 \"\\\\stdBass #\\\"Master\\\"\"
218 \\stdBass #\"Soft Bass\"
219 \"\\\\stdBass #\\\"Soft Bass\\\"\"
221 \\stdBass #\"Soft Tenor\"
222 \"\\\\stdBass #\\\"Soft Tenor\\\"\"
224 \\stdBass #\"Bass/Alto\"
225 \"\\\\stdBass #\\\"Bass/Alto\\\"\"
230 '((glyph . "accordion.stdbass")
232 ("Soprano" (reedbanks Soprano))
233 ("Alto" (reedbanks Alto Soprano))
234 ("Tenor" (reedbanks Tenor Alto Soprano))
235 ("Master" (reedbanks Bass Tenor Contralto Alto Soprano))
236 ("Soft Bass" (reedbanks Bass Tenor Contralto))
237 ("Soft Tenor" (reedbanks Tenor Alto))
238 ("Bass/Alto" (reedbanks Bass Alto Soprano)))
240 (Soprano (dots (0 . 3.5)))
241 (Alto (dots (0 . 2.5)))
242 (Contralto (dots (1 . 2)))
243 (Tenor (dots (0 . 1.5)))
244 (Bass (dots (0 . 0.5))))))
247 (define-register-set stdBassIV
248 "@code{\\stdBassIV @var{name}} generates a standard bass accordion
251 To make it available,
253 #(use-modules (scm accreg))
255 is required near the top of your input file.
257 The main use is for four-reed standard bass instruments with reedbank
263 \\new Staff \\with { \\omit TimeSignature }
264 { <e e'>2\\glissando <dis' dis''> }
265 \\new Staff \\with { \\omit TimeSignature }
267 <e,, e,>\\glissando <dis, dis>
272 Notable instruments are Morino models with MIII (the others are
273 five-reed instead) and the Atlantic@tie{}IV. Most of those models
274 have three register switches. Some newer Morinos with MIII might have
277 The prevalent three-register layout uses the middle three switches
278 @samp{Tenor}, @samp{Master}, @samp{Soft Bass}. Note that the sound is
279 quite darker than the same registrations of @samp{c,}-based
282 Available registrations are
285 #(use-modules (scm accreg))
288 \\stdBassIV #\"Soprano\"
289 \"\\\\stdBassIV #\\\"Soprano\\\"\"
291 \\stdBassIV #\"Alto\"
292 \"\\\\stdBassIV #\\\"Alto\\\"\"
294 \\stdBassIV #\"Tenor\"
295 \"\\\\stdBassIV #\\\"Tenor\\\"\"
297 \\stdBassIV #\"Master\"
298 \"\\\\stdBassIV #\\\"Master\\\"\"
301 \\stdBassIV #\"Soft Bass\"
302 \"\\\\stdBassIV #\\\"Soft Bass\\\"\"
304 \\stdBassIV #\"Bass/Alto\"
305 \"\\\\stdBassIV #\\\"Bass/Alto\\\"\"
307 \\stdBassIV #\"Soft Bass/Alto\"
308 \"\\\\stdBassIV #\\\"Soft Bass/Alto\\\"\"
310 \\stdBassIV #\"Soft Tenor\"
311 \"\\\\stdBassIV #\\\"Soft Tenor\\\"\"
316 '((glyph . "accordion.stdbass")
318 (Soprano (dots (0 . 3.5)))
319 (Alto (dots (0 . 2.5)))
320 (Tenor (dots (0 . 1.5)))
321 (Bass (dots (0 . 0.5))))
323 ("Soprano" (reedbanks Soprano))
324 ("Alto" (reedbanks Alto Soprano))
325 ("Tenor" (reedbanks Tenor Soprano))
326 ("Master" (reedbanks Bass Tenor Alto Soprano))
327 ("Soft Bass" (reedbanks Bass Tenor Alto))
328 ("Bass/Alto" (reedbanks Bass Alto Soprano))
329 ("Soft Bass/Alto" (reedbanks Bass Alto))
330 ("Soft Tenor" (reedbanks Tenor Alto)))))
332 (define-register-set stdBassV
333 "@code{\\stdBassV @var{name}} generates a standard bass accordion
336 To make it available,
338 #(use-modules (scm accreg))
340 is required near the top of your input file.
342 The main use is for five-reed standard bass instruments with reedbank
348 \\new Staff \\with { \\omit TimeSignature }
349 { <e e' e''>2\\glissando <dis' dis'' dis'''> }
350 \\new Staff \\with { \\omit TimeSignature }
352 <e,, e,>\\glissando <dis, dis>
357 This tends to be the bass layout for Hohner's Morino series without
358 convertor or MIII manual.
360 With the exception of the rather new 7-register layout, the highest
361 two chord reeds are usually sounded together. The Older instruments offer
362 5 or 3 bass registers. The Tango@tie{}VM offers an additional
363 @samp{Solo Bass} setting that mutes the chord reeds. The symbol on
364 the register buttons of the Tango@tie{}VM would actually match the
365 physical five-octave layout reflected here, but it is not used in
368 Composers should likely prefer the five-reed versions of these
369 symbols. The mismatch of a four-reed instrument with five-reed
370 symbols is easier to resolve for the player than the other way round.
372 Available registrations are
375 #(use-modules (scm accreg))
376 \\markuplist \\justified-lines {
378 \\stdBassV #\"Bass/Alto\"
379 \"\\\\stdBassV #\\\"Bass/Alto\\\"\"
381 \\stdBassV #\"Soft Bass/Alto\"
382 \"\\\\stdBassV #\\\"Soft Bass/Alto\\\"\"
385 \"\\\\stdBassV #\\\"Alto\\\"\"
387 \\stdBassV #\"Tenor\"
388 \"\\\\stdBassV #\\\"Tenor\\\"\"
390 \\stdBassV #\"Master\"
391 \"\\\\stdBassV #\\\"Master\\\"\"
394 \\stdBassV #\"Soft Bass\"
395 \"\\\\stdBassV #\\\"Soft Bass\\\"\"
397 \\stdBassV #\"Soft Tenor\"
398 \"\\\\stdBassV #\\\"Soft Tenor\\\"\"
400 \\stdBassV #\"Soprano\"
401 \"\\\\stdBassV #\\\"Soprano\\\"\"
403 \\stdBassV #\"Sopranos\"
404 \"\\\\stdBassV #\\\"Sopranos\\\"\"
406 \\stdBassV #\"Solo Bass\"
407 \"\\\\stdBassV #\\\"Solo Bass\\\"\"
412 '((glyph . "accordion.stdbass")
414 (Sopranos (dots (-0.5 . 3.5) (0.5 . 3.5)))
415 (Soprano (dots (0 . 3.5)))
416 (Alto (dots (0 . 2.5)))
417 (Tenor (dots (0 . 1.5)))
418 (Bass (dots (0 . 0.5))))
420 ("Bass/Alto" (reedbanks Bass Alto Soprano))
421 ("Soft Bass/Alto" (reedbanks Bass Alto))
422 ("Alto" (reedbanks Alto Sopranos))
423 ("Tenor" (reedbanks Tenor Sopranos))
424 ("Master" (reedbanks Bass Tenor Alto Sopranos))
425 ("Soft Bass" (reedbanks Bass Tenor Alto))
426 ("Soft Tenor" (reedbanks Tenor Alto))
427 ("Soprano" (reedbanks Soprano))
428 ("Sopranos" (reedbanks Sopranos))
429 ("Solo Bass" (reedbanks Bass)))))
431 (define-register-set stdBassVI
432 "@code{\\stdBassVI @var{name}} generates a standard bass accordion
433 register symbol for six reed basses.
435 To make it available,
437 #(use-modules (scm accreg))
439 is required near the top of your input file.
441 This is primarily the register layout for the Hohner @qq{Gola} model.
447 \\new Staff \\with { \\omit TimeSignature }
448 { <c' c' c''>\\glissando <f' f' f''>
449 <fis fis' fis''>\\glissando <b b'b''> }
450 \\new Staff \\with { \\omit TimeSignature }
452 <c, c c'>\\glissando <f, f f'>
453 <fis, fis fis>\\glissando <b, b b>
458 The registers are effectively quite similar to that of
459 @code{\\stdBass}. An additional bass reed at alto pitch is omitted
460 for esthetical reasons from the @samp{Master} setting, so the symbols
461 are almost the same except for the @samp{Alto/Soprano} register with
462 bass notes at Alto pitch and chords at Soprano pitch.
464 Available registrations are
467 #(use-modules (scm accreg))
470 \\stdBassVI #\"Soprano\"
471 \"\\\\stdBassVI #\\\"Soprano\\\"\"
473 \\stdBassVI #\"Alto\"
474 \"\\\\stdBassVI #\\\"Alto\\\"\"
476 \\stdBassVI #\"Soft Tenor\"
477 \"\\\\stdBassVI #\\\"Soft Tenor\\\"\"
479 \\stdBassVI #\"Master\"
480 \"\\\\stdBassVI #\\\"Master\\\"\"
483 \\stdBassVI #\"Alto/Soprano\"
484 \"\\\\stdBassVI #\\\"Alto/Soprano\\\"\"
486 \\stdBassVI #\"Bass/Alto\"
487 \"\\\\stdBassVI #\\\"Bass/Alto\\\"\"
489 \\stdBassVI #\"Soft Bass\"
490 \"\\\\stdBassVI #\\\"Soft Bass\\\"\"
495 '((glyph . "accordion.stdbass")
497 ("Soprano" (reedbanks Soprano))
498 ("Alto" (reedbanks Alto))
499 ("Soft Tenor" (reedbanks Tenor Alto))
500 ("Master" (reedbanks Bass Tenor Contralto Alto Soprano))
501 ("Alto/Soprano" (reedbanks Contratenor Soprano))
502 ("Bass/Alto" (reedbanks Bass Alto Soprano))
503 ("Soft Bass" (reedbanks Bass Tenor Contralto)))
505 (Soprano (dots (0 . 3.5)))
506 (Alto (dots (0 . 2.5)))
507 (Contralto (dots (1 . 2)))
508 (Contratenor (dots (-1 . 2.5)))
509 (Tenor (dots (0 . 1.5)))
510 (Bass (dots (0 . 0.5))))))
512 ;; The default FreeBass is modeled after the default Discant register
513 ;; description. Being a default, we just provide the normal 2 reed
515 (define-register-set freeBass
516 "@code{\\freeBass @var{name}} generates a free bass/@/converter
517 accordion register symbol for the usual two-reed layout.
519 To make it available,
521 #(use-modules (scm accreg))
523 is required near the top of your input file.
525 Available registrations are
528 #(use-modules (scm accreg))
532 \"\\\\freeBass #\\\"1\\\"\"
535 \"\\\\freeBass #\\\"10\\\"\"
539 \"\\\\freeBass #\\\"11\\\"\"
544 '((glyph . "accordion.freebass")
547 (M (dots (0 . 1.5))))
551 ("11" (reedbanks L M)))))