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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e24f2d3952bb3322fd0b1407b680057f9582b6846829b461ad8dafdbfc046e0d
4
- data.tar.gz: 22c5d7cdc649049693165f1d45199232fa45b5edb80db5bfe8a43eaea5f2bb26
3
+ metadata.gz: cf64a274a8669034f1e950e44d634207cac21129b88797441b848686fb7d6cfd
4
+ data.tar.gz: 46c7c01be33463d5d2bd4cc9698dd9f9618ce18525b825f05f0d4b2a203a3f4f
5
5
  SHA512:
6
- metadata.gz: 54dcd45c4a537408c12f8e2b8ebcf9651d23775203ff7f9eef2240a9f95c37bb43fc8245e9cde782d3987ea925ff172f18a85c8d5cdddf493a42f70ea327c4fc
7
- data.tar.gz: 826fe8c679a0ff354cd92e9332115953e14388a2027cc764c97ba6cf71d0fc40abefcfb5e4958a82cd76f76b883e6a86131c78cbe10c7cba23f754c3695ed480
6
+ metadata.gz: 9c73a3dada33eac70781e8c6535d515e679ac6f640c90a60a019223da065f62a8ed58df1c21554d212f5b399df37909784046e0742e6ff9aab19d5a103647f00
7
+ data.tar.gz: bd49d3440597c77f32b836833ba2c9485d11d3187ea91b85d47cfe6fab7a7d14d56579e2438720d1395f37efbbaa01ed0a9bc7f546580db6e82eca6f9960e254
@@ -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: :clefs, locale: locale_code)
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: :clefs, locale: locale_code)
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
- accordian:
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
- - edge-blown aerophone
60
+ - edge_blown_aerophone
61
61
  - wind
62
62
  - woodwind
63
63
  orchestra_section_key: woodwind
@@ -1,5 +1,5 @@
1
1
  ---
2
- accordian:
2
+ accordion:
3
3
  family_key: accordion
4
4
  notation:
5
5
  default:
@@ -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: [:instruments], locale: locale)
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
- clefs:
3
- alto_clef: Altschlüssel
4
- baritone_c_clef: Baritonschlüssel
5
- baritone_clef: Baritonschlüssel
6
- baritone_f_clef: Baritonschlüssel
7
- bass_clef: Bassschlüssel
8
- c_clef: C-Schlüssel
9
- vocal_tenor_clef: oktavierten Violinschlüssel
10
- contrabass_clef: contrabass clef
11
- countertenor_clef: countertenor clef
12
- double_treble_clef: double treble clef
13
- drum_clef: Schlagzeugschlüssel
14
- f_clef: F-Schlüssel
15
- fifth_line_c_clef: fifth-line C-clef
16
- fifth_line_f_clef: fifth-line F-clef
17
- first_line_c_clef: Sopranschlüssel
18
- first_line_g_clef: first-line G-clef
19
- fourth_line_c_clef: fourth-line C-clef
20
- fourth_line_f_clef: fourth-line F-clef
21
- french_clef: French clef
22
- french_violin_clef: French violin clef
23
- g_clef: G-Schlüssel
24
- indefinite_pitch_clef: indefinite pitch clef
25
- mezzo_soprano_clef: Mezzosopranschlüssel
26
- neutral_clef: Schlagzeugschlüssel
27
- percussion_clef: Schlagzeugschlüssel
28
- second_line_c_clef: second-line C-clef
29
- second_line_g_clef: second-line G-clef
30
- soprano_clef: Sopranschlüssel
31
- sub_bass_clef: Subbassschlüssel
32
- tenor_c_clef: Tenorschlüssel
33
- tenor_clef: Tenorschlüssel
34
- tenor_g_clef: tenor G-clef
35
- third_line_c_clef: third-line C-clef
36
- third_line_f_clef: third-line F-clef
37
- treble_clef: Violinschlüssel
38
- viola_clef: Bratschenschlüssel
39
- violin_clef: Violinschlüssel
40
- instrument_classifications:
41
- brass: Blechblas
42
- brass_instrument: Blechblasinstrument
43
- drum: Trommel
44
- keyboard_instrument: Tasteninstrumente
45
- percussion: Perkussions
46
- percussion_instrument: Schlaginstrumente
47
- plucked_instrument: Zupfinstrumente
48
- strings: Streicher
49
- stringed_instrument: Saiteninstrument
50
- wind_instrument: Blasinstrument
51
- woodwind_instrument: Holzblasinstrument
52
- instrument_voices:
53
- alto: Alt
54
- baritone: Bariton
55
- bass: Bass
56
- instruments:
57
- accordian: Akkordeon
58
- alto_flute: Altflöte
59
- alto_voice: Alt
60
- arpeggione: Arpeggione
61
- bagpipe: Dudelsack
62
- baritone_horn: Baritonhorn
63
- baritone_voice: Bariton
64
- bass_clarinet: Bassklarinette
65
- bass_drum: Grosse Trommel
66
- bass_trombone: Bass Posaune
67
- bass_voice: Bass
68
- bassoon: Fagott
69
- castanets: Kastagnetten
70
- celesta: Celesta
71
- cello: Cello
72
- cimbalom: Zymbal
73
- clarinet: Klarinette
74
- clavichord: Klavichord
75
- cornet: Kornett
76
- cymbal: Becken
77
- double_bass: Kontrabass
78
- english_horn: Englischhorn
79
- euphonium: Euphonium
80
- fiddle: Geige
81
- flugelhorn: Flügelhorn
82
- flute: Flöte
83
- french_horn: Horn
84
- glockenspiel: Glockenspiel
85
- guitar: Gitarre
86
- hammered_dulcimer: Hackbrett
87
- harp: Harfe
88
- harpsichord: Cembalo
89
- horn: Horn
90
- lute: Laute
91
- mandolin: Mandoline
92
- marimba: Marimbaphon
93
- natural_horn: Waldhorn
94
- oboe: Oboe
95
- oboe_d_amore: Liebesoboe
96
- organ: Orgel
97
- piano: Piano
98
- piccolo: Pikkoloflöte
99
- recorder: Blockflöte
100
- saxophone: Saxophon
101
- snare_drum: Leinentrommel
102
- tambourine: Tamburin
103
- tenor_drum: Tenortrommel
104
- timpani: Pauken
105
- trombone: Posaune
106
- trumpet: Trompete
107
- tuba: Tuba
108
- tubular_bells: Rohrenglocke
109
- viola: Bratsche
110
- viola_d_amore: Viola d'amore
111
- viola_da_gamba: Viola da gamba
112
- violin: Violine
113
- violoncello: Violoncello
114
- voice: Stimme
115
- xylophone: Xylophon
116
- zither: Zither
117
- locales:
118
- de: Deutsch
119
- en: Englisch
120
- es: Spanisch
121
- fr: Französisch
122
- it: Italienisch
123
- ru: Russisch
124
- reference_pitches:
125
- chamber_tone: Kammerton
126
- choir_tone: Chorton
127
- rudiments:
128
- clef: Notenschlüssel
129
- consonance: Konsonanz
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