head_music 3.0.1 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/head_music/clef.rb +2 -2
- data/lib/head_music/data/instrument_families.yml +2 -2
- data/lib/head_music/data/instruments.yml +1 -1
- data/lib/head_music/instrument.rb +3 -3
- data/lib/head_music/instrument_family.rb +2 -2
- data/lib/head_music/locales/de.yml +129 -128
- data/lib/head_music/locales/en.yml +287 -246
- data/lib/head_music/locales/en_GB.yml +3 -2
- data/lib/head_music/locales/es.yml +120 -119
- data/lib/head_music/locales/fr.yml +131 -130
- data/lib/head_music/locales/it.yml +124 -123
- data/lib/head_music/locales/ru.yml +77 -76
- data/lib/head_music/reference_pitch.rb +1 -1
- data/lib/head_music/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf64a274a8669034f1e950e44d634207cac21129b88797441b848686fb7d6cfd
|
4
|
+
data.tar.gz: 46c7c01be33463d5d2bd4cc9698dd9f9618ce18525b825f05f0d4b2a203a3f4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c73a3dada33eac70781e8c6535d515e679ac6f640c90a60a019223da065f62a8ed58df1c21554d212f5b399df37909784046e0742e6ff9aab19d5a103647f00
|
7
|
+
data.tar.gz: bd49d3440597c77f32b836833ba2c9485d11d3187ea91b85d47cfe6fab7a7d14d56579e2438720d1395f37efbbaa01ed0a9bc7f546580db6e82eca6f9960e254
|
data/lib/head_music/clef.rb
CHANGED
@@ -49,7 +49,7 @@ class HeadMusic::Clef
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def name(locale_code: Locale::DEFAULT_CODE)
|
52
|
-
I18n.translate(name_key, scope:
|
52
|
+
I18n.translate(name_key, scope: "head_music.clefs", locale: locale_code)
|
53
53
|
end
|
54
54
|
|
55
55
|
private_class_method :new
|
@@ -77,7 +77,7 @@ class HeadMusic::Clef
|
|
77
77
|
def name_key_translations(name_keys)
|
78
78
|
name_keys.map do |name_key|
|
79
79
|
I18n.config.available_locales.map do |locale_code|
|
80
|
-
I18n.translate(name_key, scope:
|
80
|
+
I18n.translate(name_key, scope: "head_music.clefs", locale: locale_code)
|
81
81
|
end.flatten.uniq.compact
|
82
82
|
end.flatten.uniq.compact
|
83
83
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
---
|
2
|
-
|
2
|
+
accordion:
|
3
3
|
classification_keys:
|
4
4
|
- reed
|
5
5
|
- free-reed
|
@@ -57,7 +57,7 @@ double_bass:
|
|
57
57
|
flute:
|
58
58
|
classification_keys:
|
59
59
|
- aerophone
|
60
|
-
-
|
60
|
+
- edge_blown_aerophone
|
61
61
|
- wind
|
62
62
|
- woodwind
|
63
63
|
orchestra_section_key: woodwind
|
@@ -50,7 +50,7 @@ class HeadMusic::Instrument
|
|
50
50
|
def translation(locale = :en)
|
51
51
|
return name unless name_key
|
52
52
|
|
53
|
-
I18n.translate(name_key, scope: [
|
53
|
+
I18n.translate(name_key, scope: %i[head_music instruments], locale: locale, default: name)
|
54
54
|
end
|
55
55
|
|
56
56
|
def family
|
@@ -104,7 +104,7 @@ class HeadMusic::Instrument
|
|
104
104
|
def key_for_name(name)
|
105
105
|
INSTRUMENTS.each do |key, _data|
|
106
106
|
I18n.config.available_locales.each do |locale|
|
107
|
-
translation = I18n.t("instruments.#{key}", locale: locale)
|
107
|
+
translation = I18n.t("head_music.instruments.#{key}", locale: locale)
|
108
108
|
return key if translation.downcase == name.downcase
|
109
109
|
end
|
110
110
|
end
|
@@ -139,7 +139,7 @@ class HeadMusic::Instrument
|
|
139
139
|
|
140
140
|
def initialize_names(record)
|
141
141
|
@name_key = record["name_key"].to_sym
|
142
|
-
self.name = I18n.translate(name_key, scope: "instruments", locale: "en", default: inferred_name)
|
142
|
+
self.name = I18n.translate(name_key, scope: "head_music.instruments", locale: "en", default: inferred_name)
|
143
143
|
@alias_name_keys = record["alias_name_keys"] || []
|
144
144
|
end
|
145
145
|
|
@@ -42,7 +42,7 @@ class HeadMusic::InstrumentFamily
|
|
42
42
|
def key_for_name(name)
|
43
43
|
INSTRUMENT_FAMILIES.each do |key, _data|
|
44
44
|
I18n.config.available_locales.each do |locale|
|
45
|
-
translation = I18n.t("instruments.#{key}", locale: locale)
|
45
|
+
translation = I18n.t("head_music.instruments.#{key}", locale: locale)
|
46
46
|
return key if translation.downcase == name.downcase
|
47
47
|
end
|
48
48
|
end
|
@@ -60,7 +60,7 @@ class HeadMusic::InstrumentFamily
|
|
60
60
|
@name_key = record["name_key"].to_sym
|
61
61
|
@orchestra_section_key = record["orchestra_section_key"]
|
62
62
|
@classification_keys = record["classification_keys"] || []
|
63
|
-
self.name = I18n.translate(name_key, scope: "instruments", locale: "en", default: inferred_name)
|
63
|
+
self.name = I18n.translate(name_key, scope: "head_music.instruments", locale: "en", default: inferred_name)
|
64
64
|
end
|
65
65
|
|
66
66
|
def inferred_name
|
@@ -1,129 +1,130 @@
|
|
1
1
|
de:
|
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
|
-
|
2
|
+
head_music:
|
3
|
+
clefs:
|
4
|
+
alto_clef: Altschlüssel
|
5
|
+
baritone_c_clef: Baritonschlüssel
|
6
|
+
baritone_clef: Baritonschlüssel
|
7
|
+
baritone_f_clef: Baritonschlüssel
|
8
|
+
bass_clef: Bassschlüssel
|
9
|
+
c_clef: C-Schlüssel
|
10
|
+
vocal_tenor_clef: oktavierten Violinschlüssel
|
11
|
+
contrabass_clef: contrabass clef
|
12
|
+
countertenor_clef: countertenor clef
|
13
|
+
double_treble_clef: double treble clef
|
14
|
+
drum_clef: Schlagzeugschlüssel
|
15
|
+
f_clef: F-Schlüssel
|
16
|
+
fifth_line_c_clef: fifth-line C-clef
|
17
|
+
fifth_line_f_clef: fifth-line F-clef
|
18
|
+
first_line_c_clef: Sopranschlüssel
|
19
|
+
first_line_g_clef: first-line G-clef
|
20
|
+
fourth_line_c_clef: fourth-line C-clef
|
21
|
+
fourth_line_f_clef: fourth-line F-clef
|
22
|
+
french_clef: French clef
|
23
|
+
french_violin_clef: French violin clef
|
24
|
+
g_clef: G-Schlüssel
|
25
|
+
indefinite_pitch_clef: indefinite pitch clef
|
26
|
+
mezzo_soprano_clef: Mezzosopranschlüssel
|
27
|
+
neutral_clef: Schlagzeugschlüssel
|
28
|
+
percussion_clef: Schlagzeugschlüssel
|
29
|
+
second_line_c_clef: second-line C-clef
|
30
|
+
second_line_g_clef: second-line G-clef
|
31
|
+
soprano_clef: Sopranschlüssel
|
32
|
+
sub_bass_clef: Subbassschlüssel
|
33
|
+
tenor_c_clef: Tenorschlüssel
|
34
|
+
tenor_clef: Tenorschlüssel
|
35
|
+
tenor_g_clef: tenor G-clef
|
36
|
+
third_line_c_clef: third-line C-clef
|
37
|
+
third_line_f_clef: third-line F-clef
|
38
|
+
treble_clef: Violinschlüssel
|
39
|
+
viola_clef: Bratschenschlüssel
|
40
|
+
violin_clef: Violinschlüssel
|
41
|
+
instrument_classifications:
|
42
|
+
brass: Blechblas
|
43
|
+
brass_instrument: Blechblasinstrument
|
44
|
+
drum: Trommel
|
45
|
+
keyboard_instrument: Tasteninstrumente
|
46
|
+
percussion: Perkussions
|
47
|
+
percussion_instrument: Schlaginstrumente
|
48
|
+
plucked_instrument: Zupfinstrumente
|
49
|
+
strings: Streicher
|
50
|
+
stringed_instrument: Saiteninstrument
|
51
|
+
wind_instrument: Blasinstrument
|
52
|
+
woodwind_instrument: Holzblasinstrument
|
53
|
+
instrument_voices:
|
54
|
+
alto: Alt
|
55
|
+
baritone: Bariton
|
56
|
+
bass: Bass
|
57
|
+
instruments:
|
58
|
+
accordion: Akkordeon
|
59
|
+
alto_flute: Altflöte
|
60
|
+
alto_voice: Alt
|
61
|
+
arpeggione: Arpeggione
|
62
|
+
bagpipe: Dudelsack
|
63
|
+
baritone_horn: Baritonhorn
|
64
|
+
baritone_voice: Bariton
|
65
|
+
bass_clarinet: Bassklarinette
|
66
|
+
bass_drum: Grosse Trommel
|
67
|
+
bass_trombone: Bass Posaune
|
68
|
+
bass_voice: Bass
|
69
|
+
bassoon: Fagott
|
70
|
+
castanets: Kastagnetten
|
71
|
+
celesta: Celesta
|
72
|
+
cello: Cello
|
73
|
+
cimbalom: Zymbal
|
74
|
+
clarinet: Klarinette
|
75
|
+
clavichord: Klavichord
|
76
|
+
cornet: Kornett
|
77
|
+
cymbal: Becken
|
78
|
+
double_bass: Kontrabass
|
79
|
+
english_horn: Englischhorn
|
80
|
+
euphonium: Euphonium
|
81
|
+
fiddle: Geige
|
82
|
+
flugelhorn: Flügelhorn
|
83
|
+
flute: Flöte
|
84
|
+
french_horn: Horn
|
85
|
+
glockenspiel: Glockenspiel
|
86
|
+
guitar: Gitarre
|
87
|
+
hammered_dulcimer: Hackbrett
|
88
|
+
harp: Harfe
|
89
|
+
harpsichord: Cembalo
|
90
|
+
horn: Horn
|
91
|
+
lute: Laute
|
92
|
+
mandolin: Mandoline
|
93
|
+
marimba: Marimbaphon
|
94
|
+
natural_horn: Waldhorn
|
95
|
+
oboe: Oboe
|
96
|
+
oboe_d_amore: Liebesoboe
|
97
|
+
organ: Orgel
|
98
|
+
piano: Piano
|
99
|
+
piccolo: Pikkoloflöte
|
100
|
+
recorder: Blockflöte
|
101
|
+
saxophone: Saxophon
|
102
|
+
snare_drum: Leinentrommel
|
103
|
+
tambourine: Tamburin
|
104
|
+
tenor_drum: Tenortrommel
|
105
|
+
timpani: Pauken
|
106
|
+
trombone: Posaune
|
107
|
+
trumpet: Trompete
|
108
|
+
tuba: Tuba
|
109
|
+
tubular_bells: Rohrenglocke
|
110
|
+
viola: Bratsche
|
111
|
+
viola_d_amore: Viola d'amore
|
112
|
+
viola_da_gamba: Viola da gamba
|
113
|
+
violin: Violine
|
114
|
+
violoncello: Violoncello
|
115
|
+
voice: Stimme
|
116
|
+
xylophone: Xylophon
|
117
|
+
zither: Zither
|
118
|
+
locales:
|
119
|
+
de: Deutsch
|
120
|
+
en: Englisch
|
121
|
+
es: Spanisch
|
122
|
+
fr: Französisch
|
123
|
+
it: Italienisch
|
124
|
+
ru: Russisch
|
125
|
+
reference_pitches:
|
126
|
+
chamber_tone: Kammerton
|
127
|
+
choir_tone: Chorton
|
128
|
+
rudiments:
|
129
|
+
clef: Notenschlüssel
|
130
|
+
consonance: Konsonanz
|