head_music 5.0.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/head_music/data/instruments.yml +179 -179
- data/lib/head_music/instrument/{pitch_configuration.rb → pitch_variant.rb} +9 -9
- data/lib/head_music/instrument/staff.rb +3 -3
- data/lib/head_music/instrument/{staff_configuration.rb → staff_scheme.rb} +4 -4
- data/lib/head_music/instrument.rb +10 -10
- data/lib/head_music/version.rb +1 -1
- data/lib/head_music.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee7c3b6377d30fa88d3f9e7f5b5450bf0664c65b4559ba6fccaf79d19ef3cfcf
|
4
|
+
data.tar.gz: 56ec218fb604b9c1c2fe3a6c2935a1157340afc0a23f3cb882ad9dd9980f1bcd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c8b2afd59aae59bcd88a8d67aa1662e79d6086166da1588bdf502a720fb471b2c55b3b6ada13eb7f09e998cd8b8c8408ec4888303d0edd9cdf09accc64c92ed
|
7
|
+
data.tar.gz: 4076e9b2b22c369f6f7e08bd202cf333d54c410df206bcc0d06417a68142be232ef58fe174aae627922e5a5ef993a9f247e706d23c17cce0f927b49198f3b987
|
@@ -1,18 +1,18 @@
|
|
1
1
|
---
|
2
2
|
accordion:
|
3
3
|
family_key: accordion
|
4
|
-
|
4
|
+
pitch_variants:
|
5
5
|
default:
|
6
|
-
|
6
|
+
staff_schemes:
|
7
7
|
default:
|
8
8
|
- clef: treble_clef
|
9
9
|
- clef: bass_clef
|
10
10
|
alto_clarinet:
|
11
11
|
family_key: clarinet
|
12
|
-
|
12
|
+
pitch_variants:
|
13
13
|
default:
|
14
14
|
fundamental_pitch_spelling: Eb
|
15
|
-
|
15
|
+
staff_schemes:
|
16
16
|
default:
|
17
17
|
- clef: treble_clef
|
18
18
|
sounding_transposition: -9
|
@@ -20,10 +20,10 @@ alto_clarinet:
|
|
20
20
|
- alto
|
21
21
|
alto_flute:
|
22
22
|
family_key: flute
|
23
|
-
|
23
|
+
pitch_variants:
|
24
24
|
default:
|
25
25
|
fundamental_pitch_spelling: G
|
26
|
-
|
26
|
+
staff_schemes:
|
27
27
|
default:
|
28
28
|
- clef: treble_clef
|
29
29
|
sounding_transposition: -5
|
@@ -34,9 +34,9 @@ alto_voice:
|
|
34
34
|
- contralto
|
35
35
|
- alto
|
36
36
|
family_key: voice
|
37
|
-
|
37
|
+
pitch_variants:
|
38
38
|
default:
|
39
|
-
|
39
|
+
staff_schemes:
|
40
40
|
default:
|
41
41
|
- clef: treble_clef
|
42
42
|
range_categories:
|
@@ -46,9 +46,9 @@ arpeggione:
|
|
46
46
|
- bowed
|
47
47
|
- chordophone
|
48
48
|
- string
|
49
|
-
|
49
|
+
pitch_variants:
|
50
50
|
default:
|
51
|
-
|
51
|
+
staff_schemes:
|
52
52
|
default:
|
53
53
|
- clef: treble_clef
|
54
54
|
sounding_transposition: -12
|
@@ -58,9 +58,9 @@ great_highland_bagpipe:
|
|
58
58
|
- bagpipe
|
59
59
|
- bagpipes
|
60
60
|
family_key: bagpipe
|
61
|
-
|
61
|
+
pitch_variants:
|
62
62
|
default:
|
63
|
-
|
63
|
+
staff_schemes:
|
64
64
|
default:
|
65
65
|
- clef: treble_clef
|
66
66
|
sounding_transposition: 1
|
@@ -70,18 +70,18 @@ banjo:
|
|
70
70
|
- chordophone
|
71
71
|
- string
|
72
72
|
orchestra_section_key: string
|
73
|
-
|
73
|
+
pitch_variants:
|
74
74
|
default:
|
75
|
-
|
75
|
+
staff_schemes:
|
76
76
|
default:
|
77
77
|
- clef: treble_clef
|
78
78
|
sounding_transposition: -12
|
79
79
|
baritone_horn:
|
80
80
|
family_key: saxhorn
|
81
|
-
|
81
|
+
pitch_variants:
|
82
82
|
default:
|
83
83
|
fundamental_pitch_spelling: Bb
|
84
|
-
|
84
|
+
staff_schemes:
|
85
85
|
default:
|
86
86
|
- clef: bass_clef
|
87
87
|
sounding_transposition: 0
|
@@ -92,19 +92,19 @@ baritone_horn:
|
|
92
92
|
- baritone
|
93
93
|
baritone_voice:
|
94
94
|
family_key: voice
|
95
|
-
|
95
|
+
pitch_variants:
|
96
96
|
default:
|
97
|
-
|
97
|
+
staff_schemes:
|
98
98
|
default:
|
99
99
|
- clef: bass_clef
|
100
100
|
range_categories:
|
101
101
|
- baritone
|
102
102
|
bass_clarinet:
|
103
103
|
family_key: clarinet
|
104
|
-
|
104
|
+
pitch_variants:
|
105
105
|
default:
|
106
106
|
fundamental_pitch_spelling: Bb
|
107
|
-
|
107
|
+
staff_schemes:
|
108
108
|
default:
|
109
109
|
- clef: treble_clef
|
110
110
|
sounding_transposition: -14
|
@@ -120,17 +120,17 @@ bass_drum:
|
|
120
120
|
classification_keys:
|
121
121
|
- percussion
|
122
122
|
- membranophone
|
123
|
-
|
123
|
+
pitch_variants:
|
124
124
|
default:
|
125
|
-
|
125
|
+
staff_schemes:
|
126
126
|
default:
|
127
127
|
- clef: neutral_clef
|
128
128
|
orchestra_section_key: percussion
|
129
129
|
bass_guitar:
|
130
130
|
family_key: guitar
|
131
|
-
|
131
|
+
pitch_variants:
|
132
132
|
default:
|
133
|
-
|
133
|
+
staff_schemes:
|
134
134
|
default:
|
135
135
|
- clef: bass_clef
|
136
136
|
sounding_transposition: -12
|
@@ -138,9 +138,9 @@ bass_oboe:
|
|
138
138
|
alias_name_keys:
|
139
139
|
- baritone_oboe
|
140
140
|
family_key: oboe
|
141
|
-
|
141
|
+
pitch_variants:
|
142
142
|
default:
|
143
|
-
|
143
|
+
staff_schemes:
|
144
144
|
default:
|
145
145
|
- clef: treble_clef
|
146
146
|
sounding_transposition: -12
|
@@ -149,45 +149,45 @@ bass_oboe:
|
|
149
149
|
- bass
|
150
150
|
bass_trombone:
|
151
151
|
family_key: trombone
|
152
|
-
|
152
|
+
pitch_variants:
|
153
153
|
default:
|
154
154
|
fundamental_pitch_spelling: Bb
|
155
|
-
|
155
|
+
staff_schemes:
|
156
156
|
default:
|
157
157
|
- clef: bass_clef
|
158
158
|
sounding_transposition: 0
|
159
159
|
bass_trumpet:
|
160
160
|
family_key: trumpet
|
161
|
-
|
161
|
+
pitch_variants:
|
162
162
|
default:
|
163
163
|
fundamental_pitch_spelling: Bb
|
164
|
-
|
164
|
+
staff_schemes:
|
165
165
|
default:
|
166
166
|
- clef: treble_clef
|
167
167
|
sounding_transposition: -14
|
168
168
|
in_c:
|
169
169
|
fundamental_pitch_spelling: C
|
170
|
-
|
170
|
+
staff_schemes:
|
171
171
|
default:
|
172
172
|
- clef: treble_clef
|
173
173
|
sounding_transposition: -12
|
174
174
|
in_e_flat:
|
175
175
|
fundamental_pitch_spelling: Eb
|
176
|
-
|
176
|
+
staff_schemes:
|
177
177
|
default:
|
178
178
|
- clef: treble_clef
|
179
179
|
sounding_transposition: -9
|
180
180
|
bass_tuba:
|
181
181
|
family_key: tuba
|
182
|
-
|
182
|
+
pitch_variants:
|
183
183
|
default:
|
184
184
|
fundamental_pitch_spelling: F
|
185
|
-
|
185
|
+
staff_schemes:
|
186
186
|
default:
|
187
187
|
- clef: bass_clef
|
188
188
|
in_e_flat:
|
189
189
|
fundamental_pitch_spelling: Eb
|
190
|
-
|
190
|
+
staff_schemes:
|
191
191
|
default:
|
192
192
|
- clef: bass_clef
|
193
193
|
british_band:
|
@@ -197,42 +197,42 @@ bass_tuba:
|
|
197
197
|
- bass
|
198
198
|
bass_voice:
|
199
199
|
family_key: voice
|
200
|
-
|
200
|
+
pitch_variants:
|
201
201
|
default:
|
202
|
-
|
202
|
+
staff_schemes:
|
203
203
|
default:
|
204
204
|
- clef: bass_clef
|
205
205
|
range_categories:
|
206
206
|
- bass
|
207
207
|
basset_horn:
|
208
208
|
family_key: clarinet
|
209
|
-
|
209
|
+
pitch_variants:
|
210
210
|
default:
|
211
211
|
fundamental_pitch_spelling: F
|
212
|
-
|
212
|
+
staff_schemes:
|
213
213
|
default:
|
214
214
|
- clef: treble_clef
|
215
215
|
sounding_transposition: -7
|
216
216
|
bassoon:
|
217
217
|
family_key: bassoon
|
218
|
-
|
218
|
+
pitch_variants:
|
219
219
|
default:
|
220
220
|
fundamental_pitch_spelling: F
|
221
|
-
|
221
|
+
staff_schemes:
|
222
222
|
default:
|
223
223
|
- clef: bass_clef
|
224
224
|
bugle:
|
225
225
|
family_key: trumpet
|
226
|
-
|
226
|
+
pitch_variants:
|
227
227
|
default:
|
228
228
|
fundamental_pitch_spelling: G
|
229
|
-
|
229
|
+
staff_schemes:
|
230
230
|
default:
|
231
231
|
- clef: treble_clef
|
232
232
|
sounding_transposition: -5
|
233
233
|
in_b_flat:
|
234
234
|
fundamental_pitch_spelling: Bb
|
235
|
-
|
235
|
+
staff_schemes:
|
236
236
|
default:
|
237
237
|
- clef: treble_clef
|
238
238
|
sounding_transposition: -2
|
@@ -240,9 +240,9 @@ castanets:
|
|
240
240
|
classification_keys:
|
241
241
|
- percussion
|
242
242
|
- idiophone
|
243
|
-
|
243
|
+
pitch_variants:
|
244
244
|
default:
|
245
|
-
|
245
|
+
staff_schemes:
|
246
246
|
default:
|
247
247
|
- clef: neutral_clef
|
248
248
|
orchestra_section_key: percussion
|
@@ -251,9 +251,9 @@ celesta:
|
|
251
251
|
- keyboard
|
252
252
|
- percussion
|
253
253
|
- idiophone
|
254
|
-
|
254
|
+
pitch_variants:
|
255
255
|
default:
|
256
|
-
|
256
|
+
staff_schemes:
|
257
257
|
default:
|
258
258
|
- clef: treble_clef
|
259
259
|
name_key: right_hand
|
@@ -264,9 +264,9 @@ cello:
|
|
264
264
|
alias_name_keys:
|
265
265
|
- violoncello
|
266
266
|
family_key: violin
|
267
|
-
|
267
|
+
pitch_variants:
|
268
268
|
default:
|
269
|
-
|
269
|
+
staff_schemes:
|
270
270
|
default:
|
271
271
|
- clef: bass_clef
|
272
272
|
chimes:
|
@@ -276,9 +276,9 @@ chimes:
|
|
276
276
|
classification_keys:
|
277
277
|
- percussion
|
278
278
|
- idiophone
|
279
|
-
|
279
|
+
pitch_variants:
|
280
280
|
default:
|
281
|
-
|
281
|
+
staff_schemes:
|
282
282
|
default:
|
283
283
|
- clef: treble_clef
|
284
284
|
orchestra_section_key: percussion
|
@@ -288,9 +288,9 @@ cimbalom:
|
|
288
288
|
- string
|
289
289
|
- struck
|
290
290
|
- plucked
|
291
|
-
|
291
|
+
pitch_variants:
|
292
292
|
default:
|
293
|
-
|
293
|
+
staff_schemes:
|
294
294
|
default:
|
295
295
|
- clef: treble_clef
|
296
296
|
- clef: bass_clef
|
@@ -299,22 +299,22 @@ clarinet:
|
|
299
299
|
alias_name_keys:
|
300
300
|
- soprano_clarinet
|
301
301
|
family_key: clarinet
|
302
|
-
|
302
|
+
pitch_variants:
|
303
303
|
default:
|
304
304
|
fundamental_pitch_spelling: Bb
|
305
|
-
|
305
|
+
staff_schemes:
|
306
306
|
default:
|
307
307
|
- clef: treble_clef
|
308
308
|
sounding_transposition: -2
|
309
309
|
in_a:
|
310
310
|
fundamental_pitch_spelling: A
|
311
|
-
|
311
|
+
staff_schemes:
|
312
312
|
default:
|
313
313
|
- clef: treble_clef
|
314
314
|
sounding_transposition: -3
|
315
315
|
in_c:
|
316
316
|
fundamental_pitch_spelling: C
|
317
|
-
|
317
|
+
staff_schemes:
|
318
318
|
default:
|
319
319
|
- clef: treble_clef
|
320
320
|
sounding_transposition: 0
|
@@ -322,7 +322,7 @@ clarinet:
|
|
322
322
|
fundamental_pitch_spelling: D
|
323
323
|
alias_name_keys:
|
324
324
|
- sopranino_clarinet
|
325
|
-
|
325
|
+
staff_schemes:
|
326
326
|
default:
|
327
327
|
- clef: treble_clef
|
328
328
|
sounding_transposition: 2
|
@@ -330,21 +330,21 @@ clarinet:
|
|
330
330
|
alias_name_keys:
|
331
331
|
- sopranino_clarinet
|
332
332
|
fundamental_pitch_spelling: Eb
|
333
|
-
|
333
|
+
staff_schemes:
|
334
334
|
default:
|
335
335
|
- clef: treble_clef
|
336
336
|
sounding_transposition: 3
|
337
337
|
clash_cymbals:
|
338
338
|
family_key: cymbal
|
339
|
-
|
339
|
+
pitch_variants:
|
340
340
|
default:
|
341
|
-
|
341
|
+
staff_schemes:
|
342
342
|
default:
|
343
343
|
- clef: neutral_clef
|
344
344
|
clavichord:
|
345
|
-
|
345
|
+
pitch_variants:
|
346
346
|
default:
|
347
|
-
|
347
|
+
staff_schemes:
|
348
348
|
default:
|
349
349
|
- clef: treble_clef
|
350
350
|
name_key: right_hand
|
@@ -352,18 +352,18 @@ clavichord:
|
|
352
352
|
name_key: left_hand
|
353
353
|
contrabass_clarinet:
|
354
354
|
family_key: clarinet
|
355
|
-
|
355
|
+
pitch_variants:
|
356
356
|
default:
|
357
357
|
fundamental_pitch_spelling: Bb
|
358
|
-
|
358
|
+
staff_schemes:
|
359
359
|
default:
|
360
360
|
- clef: treble_clef
|
361
361
|
sounding_transposition: -26
|
362
362
|
contrabassoon:
|
363
363
|
family_key: bassoon
|
364
|
-
|
364
|
+
pitch_variants:
|
365
365
|
default:
|
366
|
-
|
366
|
+
staff_schemes:
|
367
367
|
default:
|
368
368
|
- clef: bass_clef
|
369
369
|
sounding_transposition: -12
|
@@ -371,26 +371,26 @@ cor_anglais:
|
|
371
371
|
alias_name_keys:
|
372
372
|
- english_horn
|
373
373
|
family_key: oboe
|
374
|
-
|
374
|
+
pitch_variants:
|
375
375
|
default:
|
376
|
-
|
376
|
+
staff_schemes:
|
377
377
|
default:
|
378
378
|
- clef: treble_clef
|
379
379
|
sounding_transposition: -7
|
380
380
|
cornet:
|
381
381
|
family_key: cornet
|
382
|
-
|
382
|
+
pitch_variants:
|
383
383
|
default:
|
384
384
|
fundamental_pitch_spelling: Bb
|
385
|
-
|
385
|
+
staff_schemes:
|
386
386
|
default:
|
387
387
|
- clef: treble_clef
|
388
388
|
sounding_transposition: -2
|
389
389
|
countertenor_voice:
|
390
390
|
family_key: voice
|
391
|
-
|
391
|
+
pitch_variants:
|
392
392
|
default:
|
393
|
-
|
393
|
+
staff_schemes:
|
394
394
|
default:
|
395
395
|
- clef: treble_clef
|
396
396
|
range_categories:
|
@@ -399,9 +399,9 @@ cowbell:
|
|
399
399
|
classification_keys:
|
400
400
|
- percussion
|
401
401
|
- idiophone
|
402
|
-
|
402
|
+
pitch_variants:
|
403
403
|
default:
|
404
|
-
|
404
|
+
staff_schemes:
|
405
405
|
default:
|
406
406
|
- clef: neutral_clef
|
407
407
|
orchestra_section_key: percussion
|
@@ -409,26 +409,26 @@ crotales:
|
|
409
409
|
classification_keys:
|
410
410
|
- percussion
|
411
411
|
- idiophone
|
412
|
-
|
412
|
+
pitch_variants:
|
413
413
|
default:
|
414
|
-
|
414
|
+
staff_schemes:
|
415
415
|
default:
|
416
416
|
- clef: neutral_clef
|
417
417
|
orchestra_section_key: percussion
|
418
418
|
cymbal:
|
419
419
|
family_key: cymbal
|
420
|
-
|
420
|
+
pitch_variants:
|
421
421
|
default:
|
422
|
-
|
422
|
+
staff_schemes:
|
423
423
|
default:
|
424
424
|
- clef: neutral_clef
|
425
425
|
double_bass:
|
426
426
|
alias_name_keys:
|
427
427
|
- contrabass
|
428
428
|
- string_bass
|
429
|
-
|
429
|
+
pitch_variants:
|
430
430
|
default:
|
431
|
-
|
431
|
+
staff_schemes:
|
432
432
|
default:
|
433
433
|
- clef: bass_clef
|
434
434
|
sounding_transposition: -12
|
@@ -439,42 +439,42 @@ euphonium:
|
|
439
439
|
- aerophone
|
440
440
|
- brass
|
441
441
|
- wind
|
442
|
-
|
442
|
+
pitch_variants:
|
443
443
|
default:
|
444
|
-
|
444
|
+
staff_schemes:
|
445
445
|
default:
|
446
446
|
- clef: bass_clef
|
447
447
|
sounding_transposition: 0
|
448
448
|
british_band:
|
449
|
-
|
449
|
+
staff_schemes:
|
450
450
|
default:
|
451
451
|
- clef: treble_clef
|
452
452
|
sounding_transposition: -14
|
453
453
|
orchestra_section_key: brass
|
454
454
|
flugelhorn:
|
455
455
|
family_key: saxhorn
|
456
|
-
|
456
|
+
pitch_variants:
|
457
457
|
default:
|
458
458
|
fundamental_pitch_spelling: Bb
|
459
|
-
|
459
|
+
staff_schemes:
|
460
460
|
default:
|
461
461
|
- clef: treble_clef
|
462
462
|
sounding_transposition: -2
|
463
463
|
flute:
|
464
464
|
family_key: flute
|
465
|
-
|
465
|
+
pitch_variants:
|
466
466
|
default:
|
467
|
-
|
467
|
+
staff_schemes:
|
468
468
|
default:
|
469
469
|
- clef: treble_clef
|
470
470
|
french_horn:
|
471
471
|
alias_name_keys:
|
472
472
|
- horn
|
473
473
|
family_key: horn
|
474
|
-
|
474
|
+
pitch_variants:
|
475
475
|
default:
|
476
476
|
fundamental_pitch_spelling: F
|
477
|
-
|
477
|
+
staff_schemes:
|
478
478
|
default:
|
479
479
|
- clef: treble_clef
|
480
480
|
sounding_transposition: -7
|
@@ -487,16 +487,16 @@ glockenspiel:
|
|
487
487
|
- bells
|
488
488
|
- carillon
|
489
489
|
family_key: glockenspiel
|
490
|
-
|
490
|
+
pitch_variants:
|
491
491
|
default:
|
492
|
-
|
492
|
+
staff_schemes:
|
493
493
|
default:
|
494
494
|
- clef: treble_clef
|
495
495
|
guitar:
|
496
496
|
family_key: guitar
|
497
|
-
|
497
|
+
pitch_variants:
|
498
498
|
default:
|
499
|
-
|
499
|
+
staff_schemes:
|
500
500
|
default:
|
501
501
|
- clef: treble_clef
|
502
502
|
sounding_transposition: -12
|
@@ -505,24 +505,24 @@ hammered_dulcimer:
|
|
505
505
|
- percussion
|
506
506
|
- chordophone
|
507
507
|
- string
|
508
|
-
|
508
|
+
pitch_variants:
|
509
509
|
default:
|
510
|
-
|
510
|
+
staff_schemes:
|
511
511
|
default:
|
512
512
|
- clef: treble_clef
|
513
513
|
orchestra_section_key: percussion
|
514
514
|
harp:
|
515
515
|
family_key: harp
|
516
|
-
|
516
|
+
pitch_variants:
|
517
517
|
default:
|
518
|
-
|
518
|
+
staff_schemes:
|
519
519
|
default:
|
520
520
|
- clef: treble_clef
|
521
521
|
- clef: bass_clef
|
522
522
|
harpsichord:
|
523
|
-
|
523
|
+
pitch_variants:
|
524
524
|
default:
|
525
|
-
|
525
|
+
staff_schemes:
|
526
526
|
default:
|
527
527
|
- clef: treble_clef
|
528
528
|
name_key: right_hand
|
@@ -530,9 +530,9 @@ harpsichord:
|
|
530
530
|
name_key: left_hand
|
531
531
|
lute:
|
532
532
|
family_key: lute
|
533
|
-
|
533
|
+
pitch_variants:
|
534
534
|
default:
|
535
|
-
|
535
|
+
staff_schemes:
|
536
536
|
default:
|
537
537
|
- clef: treble_clef
|
538
538
|
- clef: bass_clef
|
@@ -540,9 +540,9 @@ lute:
|
|
540
540
|
- clef: treble_clef
|
541
541
|
mandolin:
|
542
542
|
family_key: mandolin
|
543
|
-
|
543
|
+
pitch_variants:
|
544
544
|
default:
|
545
|
-
|
545
|
+
staff_schemes:
|
546
546
|
default:
|
547
547
|
- clef: treble_clef
|
548
548
|
maracas:
|
@@ -550,17 +550,17 @@ maracas:
|
|
550
550
|
- percussion
|
551
551
|
- shaken
|
552
552
|
- idiophone
|
553
|
-
|
553
|
+
pitch_variants:
|
554
554
|
default:
|
555
|
-
|
555
|
+
staff_schemes:
|
556
556
|
default:
|
557
557
|
- clef: neutral_clef
|
558
558
|
orchestra_section_key: percussion
|
559
559
|
marimba:
|
560
560
|
family_key: marimba
|
561
|
-
|
561
|
+
pitch_variants:
|
562
562
|
default:
|
563
|
-
|
563
|
+
staff_schemes:
|
564
564
|
default:
|
565
565
|
- clef: treble_clef
|
566
566
|
- clef: bass_clef
|
@@ -568,34 +568,34 @@ mezzo_soprano_voice:
|
|
568
568
|
alias_name_keys:
|
569
569
|
- mezzo_soprano
|
570
570
|
family_key: voice
|
571
|
-
|
571
|
+
pitch_variants:
|
572
572
|
default:
|
573
|
-
|
573
|
+
staff_schemes:
|
574
574
|
default:
|
575
575
|
- clef: treble_clef
|
576
576
|
range_categories:
|
577
577
|
- mezzo_soprano
|
578
578
|
natural_horn:
|
579
579
|
family_key: horn
|
580
|
-
|
580
|
+
pitch_variants:
|
581
581
|
default:
|
582
|
-
|
582
|
+
staff_schemes:
|
583
583
|
default:
|
584
584
|
- clef: treble_clef
|
585
585
|
oboe:
|
586
586
|
family_key: oboe
|
587
|
-
|
587
|
+
pitch_variants:
|
588
588
|
default:
|
589
|
-
|
589
|
+
staff_schemes:
|
590
590
|
default:
|
591
591
|
- clef: treble_clef
|
592
592
|
oboe_d_amore:
|
593
593
|
alias_name_keys:
|
594
594
|
- hautbois_d_amour
|
595
595
|
family_key: oboe
|
596
|
-
|
596
|
+
pitch_variants:
|
597
597
|
default:
|
598
|
-
|
598
|
+
staff_schemes:
|
599
599
|
default:
|
600
600
|
- clef: treble_clef
|
601
601
|
sounding_transposition: -3
|
@@ -603,9 +603,9 @@ organ:
|
|
603
603
|
alias_name_keys:
|
604
604
|
- pipe_organ
|
605
605
|
family_key: organ
|
606
|
-
|
606
|
+
pitch_variants:
|
607
607
|
default:
|
608
|
-
|
608
|
+
staff_schemes:
|
609
609
|
default:
|
610
610
|
- clef: treble_clef
|
611
611
|
name_key: right_hand
|
@@ -623,9 +623,9 @@ piano:
|
|
623
623
|
- pianoforte
|
624
624
|
- fortepiano
|
625
625
|
family_key: piano
|
626
|
-
|
626
|
+
pitch_variants:
|
627
627
|
default:
|
628
|
-
|
628
|
+
staff_schemes:
|
629
629
|
default:
|
630
630
|
- clef: treble_clef
|
631
631
|
name_key: right_hand
|
@@ -633,10 +633,10 @@ piano:
|
|
633
633
|
name_key: left_hand
|
634
634
|
piccolo_clarinet:
|
635
635
|
family_key: clarinet
|
636
|
-
|
636
|
+
pitch_variants:
|
637
637
|
default:
|
638
638
|
fundamental_pitch_spelling: Ab
|
639
|
-
|
639
|
+
staff_schemes:
|
640
640
|
default:
|
641
641
|
- clef: treble_clef
|
642
642
|
sounding_transposition: 8
|
@@ -644,24 +644,24 @@ piccolo_flute:
|
|
644
644
|
alias_name_keys:
|
645
645
|
- piccolo
|
646
646
|
family_key: flute
|
647
|
-
|
647
|
+
pitch_variants:
|
648
648
|
default:
|
649
|
-
|
649
|
+
staff_schemes:
|
650
650
|
default:
|
651
651
|
- clef: treble_clef
|
652
652
|
sounding_transposition: 12
|
653
653
|
piccolo_trumpet:
|
654
654
|
family_key: trumpet
|
655
|
-
|
655
|
+
pitch_variants:
|
656
656
|
default:
|
657
657
|
fundamental_pitch_spelling: Bb
|
658
|
-
|
658
|
+
staff_schemes:
|
659
659
|
default:
|
660
660
|
- clef: treble_clef
|
661
661
|
sounding_transposition: 10
|
662
662
|
alternate_leadpipe:
|
663
663
|
fundamental_pitch_spelling: A
|
664
|
-
|
664
|
+
staff_schemes:
|
665
665
|
default:
|
666
666
|
- clef: treble_clef
|
667
667
|
sounding_transposition: 9
|
@@ -669,16 +669,16 @@ piccolo_trumpet:
|
|
669
669
|
- piccolo
|
670
670
|
recorder:
|
671
671
|
family_key: recorder
|
672
|
-
|
672
|
+
pitch_variants:
|
673
673
|
default:
|
674
|
-
|
674
|
+
staff_schemes:
|
675
675
|
default:
|
676
676
|
- clef: treble_clef
|
677
677
|
saxophone:
|
678
678
|
family_key: saxophone
|
679
|
-
|
679
|
+
pitch_variants:
|
680
680
|
default:
|
681
|
-
|
681
|
+
staff_schemes:
|
682
682
|
default:
|
683
683
|
- clef: treble_clef
|
684
684
|
snare_drum:
|
@@ -688,43 +688,43 @@ snare_drum:
|
|
688
688
|
- military_drum
|
689
689
|
- field_drum
|
690
690
|
family_key: snare_drum
|
691
|
-
|
691
|
+
pitch_variants:
|
692
692
|
default:
|
693
|
-
|
693
|
+
staff_schemes:
|
694
694
|
default:
|
695
695
|
- clef: neutral_clef
|
696
696
|
soprano_voice:
|
697
697
|
alias_name_keys:
|
698
698
|
- soprano
|
699
699
|
family_key: voice
|
700
|
-
|
700
|
+
pitch_variants:
|
701
701
|
default:
|
702
|
-
|
702
|
+
staff_schemes:
|
703
703
|
default:
|
704
704
|
- clef: treble_clef
|
705
705
|
range_categories:
|
706
706
|
- soprano
|
707
707
|
sousaphone:
|
708
708
|
family_key: tuba
|
709
|
-
|
709
|
+
pitch_variants:
|
710
710
|
default:
|
711
711
|
fundamental_pitch_spelling: Bb
|
712
|
-
|
712
|
+
staff_schemes:
|
713
713
|
default:
|
714
714
|
- clef: bass_clef
|
715
715
|
transposition: 0
|
716
716
|
suspended_cymbal:
|
717
717
|
family_key: cymbal
|
718
|
-
|
718
|
+
pitch_variants:
|
719
719
|
default:
|
720
|
-
|
720
|
+
staff_schemes:
|
721
721
|
default:
|
722
722
|
- clef: neutral_clef
|
723
723
|
synthesizer:
|
724
724
|
family_key: synthesizer
|
725
|
-
|
725
|
+
pitch_variants:
|
726
726
|
default:
|
727
|
-
|
727
|
+
staff_schemes:
|
728
728
|
default:
|
729
729
|
- clef: treble_clef
|
730
730
|
name_key: right_hand
|
@@ -735,9 +735,9 @@ tam_tam:
|
|
735
735
|
- tamtam
|
736
736
|
- gong
|
737
737
|
family_key: gong
|
738
|
-
|
738
|
+
pitch_variants:
|
739
739
|
default:
|
740
|
-
|
740
|
+
staff_schemes:
|
741
741
|
default:
|
742
742
|
- clef: neutral_clef
|
743
743
|
tambourine:
|
@@ -746,17 +746,17 @@ tambourine:
|
|
746
746
|
- shaken
|
747
747
|
- idiophone
|
748
748
|
- membranophone
|
749
|
-
|
749
|
+
pitch_variants:
|
750
750
|
default:
|
751
|
-
|
751
|
+
staff_schemes:
|
752
752
|
default:
|
753
753
|
- clef: neutral_clef
|
754
754
|
orchestra_section_key: percussion
|
755
755
|
temple_blocks:
|
756
756
|
family_key: woodblock
|
757
|
-
|
757
|
+
pitch_variants:
|
758
758
|
default:
|
759
|
-
|
759
|
+
staff_schemes:
|
760
760
|
default:
|
761
761
|
- clef: neutral_clef
|
762
762
|
tenor_drum:
|
@@ -764,17 +764,17 @@ tenor_drum:
|
|
764
764
|
- percussion
|
765
765
|
- struck
|
766
766
|
- membranophone
|
767
|
-
|
767
|
+
pitch_variants:
|
768
768
|
default:
|
769
|
-
|
769
|
+
staff_schemes:
|
770
770
|
default:
|
771
771
|
- clef: neutral_clef
|
772
772
|
orchestra_section_key: percussion
|
773
773
|
tenor_voice:
|
774
774
|
family_key: voice
|
775
|
-
|
775
|
+
pitch_variants:
|
776
776
|
default:
|
777
|
-
|
777
|
+
staff_schemes:
|
778
778
|
default:
|
779
779
|
- clef: vocal_tenor_clef
|
780
780
|
bass:
|
@@ -791,9 +791,9 @@ timpani:
|
|
791
791
|
- kettledrum
|
792
792
|
- timpanum
|
793
793
|
family_key: kettledrum
|
794
|
-
|
794
|
+
pitch_variants:
|
795
795
|
default:
|
796
|
-
|
796
|
+
staff_schemes:
|
797
797
|
default:
|
798
798
|
- clef: neutral_clef
|
799
799
|
triangle:
|
@@ -801,9 +801,9 @@ triangle:
|
|
801
801
|
- percussion
|
802
802
|
- struck
|
803
803
|
- idiophone
|
804
|
-
|
804
|
+
pitch_variants:
|
805
805
|
default:
|
806
|
-
|
806
|
+
staff_schemes:
|
807
807
|
default:
|
808
808
|
- clef: neutral_clef
|
809
809
|
orchestra_section_key: percussion
|
@@ -811,45 +811,45 @@ trombone:
|
|
811
811
|
alias_name_keys:
|
812
812
|
- tenor_trombone
|
813
813
|
family_key: trombone
|
814
|
-
|
814
|
+
pitch_variants:
|
815
815
|
default:
|
816
816
|
fundamental_pitch_spelling: Bb
|
817
|
-
|
817
|
+
staff_schemes:
|
818
818
|
default:
|
819
819
|
- clef: bass_clef
|
820
820
|
trumpet:
|
821
821
|
family_key: trumpet
|
822
|
-
|
822
|
+
pitch_variants:
|
823
823
|
default:
|
824
824
|
fundamental_pitch_spelling: Bb
|
825
|
-
|
825
|
+
staff_schemes:
|
826
826
|
default:
|
827
827
|
- clef: treble_clef
|
828
828
|
sounding_transposition: -2
|
829
829
|
trumpet_in_c:
|
830
830
|
family_key: trumpet
|
831
|
-
|
831
|
+
pitch_variants:
|
832
832
|
default:
|
833
833
|
fundamental_pitch_spelling: C
|
834
|
-
|
834
|
+
staff_schemes:
|
835
835
|
default:
|
836
836
|
- clef: treble_clef
|
837
837
|
sounding_transposition: 0
|
838
838
|
trumpet_in_d:
|
839
839
|
family_key: trumpet
|
840
|
-
|
840
|
+
pitch_variants:
|
841
841
|
default:
|
842
842
|
fundamental_pitch_spelling: D
|
843
|
-
|
843
|
+
staff_schemes:
|
844
844
|
default:
|
845
845
|
- clef: treble_clef
|
846
846
|
sounding_transposition: 2
|
847
847
|
trumpet_in_e_flat:
|
848
848
|
family_key: trumpet
|
849
|
-
|
849
|
+
pitch_variants:
|
850
850
|
default:
|
851
851
|
fundamental_pitch_spelling: Eb
|
852
|
-
|
852
|
+
staff_schemes:
|
853
853
|
default:
|
854
854
|
- clef: treble_clef
|
855
855
|
sounding_transposition: 3
|
@@ -857,10 +857,10 @@ tuba:
|
|
857
857
|
alias_name_keys:
|
858
858
|
- contrabass_tuba
|
859
859
|
family_key: tuba
|
860
|
-
|
860
|
+
pitch_variants:
|
861
861
|
default:
|
862
862
|
fundamental_pitch_spelling: Bb
|
863
|
-
|
863
|
+
staff_schemes:
|
864
864
|
default:
|
865
865
|
- clef: bass_clef
|
866
866
|
british_band:
|
@@ -868,45 +868,45 @@ tuba:
|
|
868
868
|
sounding_transposition: -26
|
869
869
|
in_c:
|
870
870
|
fundamental_pitch_spelling: C
|
871
|
-
|
871
|
+
staff_schemes:
|
872
872
|
default:
|
873
873
|
- clef: bass_clef
|
874
874
|
vibraphone:
|
875
875
|
alias_name_keys:
|
876
876
|
- vibes
|
877
877
|
family_key: vibraphone
|
878
|
-
|
878
|
+
pitch_variants:
|
879
879
|
default:
|
880
|
-
|
880
|
+
staff_schemes:
|
881
881
|
default:
|
882
882
|
- clef: treble_clef
|
883
883
|
viola:
|
884
884
|
family_key: violin
|
885
|
-
|
885
|
+
pitch_variants:
|
886
886
|
default:
|
887
|
-
|
887
|
+
staff_schemes:
|
888
888
|
default:
|
889
889
|
- clef: alto_clef
|
890
890
|
violin:
|
891
891
|
alias_name_keys:
|
892
892
|
- fiddle
|
893
893
|
family_key: violin
|
894
|
-
|
894
|
+
pitch_variants:
|
895
895
|
default:
|
896
|
-
|
896
|
+
staff_schemes:
|
897
897
|
default:
|
898
898
|
- clef: treble_clef
|
899
899
|
woodblock:
|
900
900
|
family_key: woodblock
|
901
|
-
|
901
|
+
pitch_variants:
|
902
902
|
default:
|
903
|
-
|
903
|
+
staff_schemes:
|
904
904
|
default:
|
905
905
|
- clef: neutral_clef
|
906
906
|
xylophone:
|
907
907
|
family_key: xylophone
|
908
|
-
|
908
|
+
pitch_variants:
|
909
909
|
default:
|
910
|
-
|
910
|
+
staff_schemes:
|
911
911
|
default:
|
912
912
|
- clef: treble_clef
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class HeadMusic::Instrument::
|
1
|
+
class HeadMusic::Instrument::PitchVariant
|
2
2
|
attr_reader :key, :attributes
|
3
3
|
|
4
4
|
def initialize(key, attributes = {})
|
@@ -13,12 +13,12 @@ class HeadMusic::Instrument::PitchConfiguration
|
|
13
13
|
HeadMusic::Spelling.get(attributes["fundamental_pitch_spelling"])
|
14
14
|
end
|
15
15
|
|
16
|
-
def
|
17
|
-
@
|
18
|
-
(attributes["
|
19
|
-
HeadMusic::Instrument::
|
16
|
+
def staff_schemes
|
17
|
+
@staff_schemes ||=
|
18
|
+
(attributes["staff_schemes"] || {}).map do |key, list|
|
19
|
+
HeadMusic::Instrument::StaffScheme.new(
|
20
20
|
key: key,
|
21
|
-
|
21
|
+
pitch_variant: self,
|
22
22
|
list: list
|
23
23
|
)
|
24
24
|
end
|
@@ -28,8 +28,8 @@ class HeadMusic::Instrument::PitchConfiguration
|
|
28
28
|
key.to_s == "default"
|
29
29
|
end
|
30
30
|
|
31
|
-
def
|
32
|
-
@
|
33
|
-
|
31
|
+
def default_staff_scheme
|
32
|
+
@default_staff_scheme ||=
|
33
|
+
staff_schemes.find(&:default?) || staff_schemes.first
|
34
34
|
end
|
35
35
|
end
|
@@ -1,10 +1,10 @@
|
|
1
1
|
class HeadMusic::Instrument::Staff
|
2
2
|
DEFAULT_CLEF = "treble_clef"
|
3
3
|
|
4
|
-
attr_reader :
|
4
|
+
attr_reader :staff_scheme, :attributes
|
5
5
|
|
6
|
-
def initialize(
|
7
|
-
@
|
6
|
+
def initialize(staff_scheme, attributes)
|
7
|
+
@staff_scheme = staff_scheme
|
8
8
|
@attributes = attributes || {}
|
9
9
|
end
|
10
10
|
|
@@ -1,8 +1,8 @@
|
|
1
|
-
class HeadMusic::Instrument::
|
2
|
-
attr_reader :
|
1
|
+
class HeadMusic::Instrument::StaffScheme
|
2
|
+
attr_reader :pitch_variant, :key, :list
|
3
3
|
|
4
|
-
def initialize(
|
5
|
-
@
|
4
|
+
def initialize(pitch_variant:, key:, list:)
|
5
|
+
@pitch_variant = pitch_variant
|
6
6
|
@key = key || "default"
|
7
7
|
@list = list
|
8
8
|
end
|
@@ -9,7 +9,7 @@
|
|
9
9
|
# default_clefs: the default clef or system of clefs for the instrument
|
10
10
|
# - [treble] for instruments that use the treble clef
|
11
11
|
# - [treble, bass] for instruments that use the grand staff
|
12
|
-
#
|
12
|
+
# pitch_variants:
|
13
13
|
# a hash of default and alternative fundamental pitches.
|
14
14
|
# Associations:
|
15
15
|
# family: the family of the instrument (e.g. "saxophone")
|
@@ -32,7 +32,7 @@ class HeadMusic::Instrument
|
|
32
32
|
attr_reader(
|
33
33
|
:name_key, :alias_name_keys,
|
34
34
|
:family_key, :orchestra_section_key,
|
35
|
-
:
|
35
|
+
:pitch_variants, :classification_keys
|
36
36
|
)
|
37
37
|
|
38
38
|
def ==(other)
|
@@ -75,16 +75,16 @@ class HeadMusic::Instrument
|
|
75
75
|
default_clefs.any?
|
76
76
|
end
|
77
77
|
|
78
|
-
def
|
79
|
-
|
78
|
+
def default_pitch_variant
|
79
|
+
pitch_variants.find(&:default?) || pitch_variants.first
|
80
80
|
end
|
81
81
|
|
82
|
-
def
|
83
|
-
|
82
|
+
def default_staff_scheme
|
83
|
+
default_pitch_variant&.default_staff_scheme
|
84
84
|
end
|
85
85
|
|
86
86
|
def default_staves
|
87
|
-
|
87
|
+
default_staff_scheme&.staves || []
|
88
88
|
end
|
89
89
|
|
90
90
|
def default_clefs
|
@@ -158,9 +158,9 @@ class HeadMusic::Instrument
|
|
158
158
|
def initialize_attributes(record)
|
159
159
|
@orchestra_section_key ||= record["orchestra_section_key"]
|
160
160
|
@classification_keys = [@classification_keys, record["classification_keys"]].flatten.compact.uniq
|
161
|
-
@
|
162
|
-
(record["
|
163
|
-
HeadMusic::Instrument::
|
161
|
+
@pitch_variants =
|
162
|
+
(record["pitch_variants"] || {}).map do |key, attributes|
|
163
|
+
HeadMusic::Instrument::PitchVariant.new(key, attributes)
|
164
164
|
end
|
165
165
|
end
|
166
166
|
|
data/lib/head_music/version.rb
CHANGED
data/lib/head_music.rb
CHANGED
@@ -41,8 +41,8 @@ require "head_music/diatonic_interval"
|
|
41
41
|
require "head_music/harmonic_interval"
|
42
42
|
require "head_music/instrument_family"
|
43
43
|
require "head_music/instrument"
|
44
|
-
require "head_music/instrument/
|
45
|
-
require "head_music/instrument/
|
44
|
+
require "head_music/instrument/pitch_variant"
|
45
|
+
require "head_music/instrument/staff_scheme"
|
46
46
|
require "head_music/instrument/staff"
|
47
47
|
require "head_music/interval_cycle"
|
48
48
|
require "head_music/key_signature"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: head_music
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob Head
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -138,9 +138,9 @@ files:
|
|
138
138
|
- lib/head_music/diatonic_interval.rb
|
139
139
|
- lib/head_music/harmonic_interval.rb
|
140
140
|
- lib/head_music/instrument.rb
|
141
|
-
- lib/head_music/instrument/
|
141
|
+
- lib/head_music/instrument/pitch_variant.rb
|
142
142
|
- lib/head_music/instrument/staff.rb
|
143
|
-
- lib/head_music/instrument/
|
143
|
+
- lib/head_music/instrument/staff_scheme.rb
|
144
144
|
- lib/head_music/instrument_family.rb
|
145
145
|
- lib/head_music/interval_cycle.rb
|
146
146
|
- lib/head_music/key_signature.rb
|