head_music 0.25.0 → 0.26.0

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: 59d262194fb0642a00c0f6a491f0225ac8e637fc1b81fb210e202bb71f38d37d
4
- data.tar.gz: b28f1d54a1f51a8500e2448fd5e64a8fcd2a901ef085ca2a378add0277a65c9b
3
+ metadata.gz: 075be1fb94f05c68709ec7a1ea42e7eac644be0dc08bb0b9ff22d2ceddc8434e
4
+ data.tar.gz: 3142cf455d26bcf98d228d11d6593b5fbde19ac1a61bddae4b354bd0ebaf9a12
5
5
  SHA512:
6
- metadata.gz: 963a048a8b771cc8c3dd5d1a5735744bbed9ea1ba90028d1e152f8649aa4f08d37c4e9c91d87b07872fc9ea65557a4d7d124b2c1a1c62747279188b7ca64db13
7
- data.tar.gz: 6b27b0330b5b8d9dbdb18934baa8b2e5e1b2992b580f8e930d9979f2da08be19ba1274c2eba1d251e57c9c026cd871d05cc9d6f5e58e0b52ce57ba49f7809d61
6
+ metadata.gz: a2ceb87fe6d81f8c2994f81e402979ba72d77834f1fefc3751919530989ae47448cbe4a9ef59009bf88e2325fc520209aff993b5c0368f7c4a4dae6d83398f1f
7
+ data.tar.gz: a6c9cb9952f288f155cc224ab9b26ae9046f9cdbcb870e12b8bd7f4f5477727cfcd9fdda3f8b3a64ab3cdaff019412281cd9ef45e4c3da2b43b16b1258ab81a0
@@ -1,83 +1,145 @@
1
1
  ---
2
- guitar:
3
- family: string
4
- classifications:
5
- - string
6
- - chordophone
7
- default_clefs:
8
- - treble_clef
9
- voice: tenor
10
- piano:
11
- family: string
2
+ bassoon:
12
3
  classifications:
13
- - string
14
- - chordophone
15
- - keyboard
16
- default_clefs:
17
- - treble_clef
4
+ - aerophone
5
+ - reed
6
+ - double_reed
7
+ - wind
8
+ - woodwind
9
+ family: woodwind
10
+ standard_staves:
18
11
  - bass_clef
19
- violin:
20
- family: string
12
+ cello:
21
13
  alias_name_keys:
22
- - fiddle
14
+ - violoncello
23
15
  classifications:
24
- - string
25
- - chordophone
26
16
  - bowed
27
- default_clefs:
28
- - treble_clef
29
- voice: soprano
30
- viola:
31
- family: string
32
- classifications:
33
- - string
34
17
  - chordophone
35
- - bowed
36
- default_clefs:
37
- - alto_clef
38
- voice: alto
39
- cello:
40
- family: string
41
- classifications:
42
18
  - string
43
- - chordophone
44
- - bowed
45
- default_clefs:
19
+ family: string
20
+ standard_staves:
46
21
  - bass_clef
47
- voice: tenor
22
+ clarinet:
23
+ classifications:
24
+ - aerophone
25
+ - reed
26
+ - single_reed
27
+ - wind
28
+ - woodwind
29
+ family: woodwind
30
+ standard_staves:
31
+ - treble_clef
48
32
  double_bass:
49
- family: string
50
33
  classifications:
51
34
  - string
52
35
  - chordophone
53
36
  - bowed
54
- default_clefs:
37
+ family: string
38
+ standard_staves:
55
39
  - bass_clef
56
- voice: bass
40
+ flute:
41
+ classifications:
42
+ - aerophone
43
+ - edge-blown aerophone
44
+ - wind
45
+ - woodwind
46
+ family: woodwind
47
+ standard_staves:
48
+ - treble_clef
49
+ french_horn:
50
+ alias_name_keys:
51
+ - horn
52
+ classifications:
53
+ - aerophone
54
+ - brass
55
+ - wind
56
+ family: brass
57
+ standard_staves:
58
+ - treble_clef
59
+ guitar:
60
+ classifications:
61
+ - chordophone
62
+ - plucked
63
+ - string
64
+ family: string
65
+ standard_staves:
66
+ - treble_clef
57
67
  harp:
58
68
  family: string
59
69
  classifications:
60
- - string
61
70
  - chordophone
62
71
  - plucked
63
- default_clefs:
72
+ - string
73
+ standard_staves:
64
74
  - treble_clef
65
75
  - bass_clef
66
- flute:
67
- family: woodwind
76
+ oboe:
68
77
  classifications:
69
- - woodwind
70
- - wind
71
78
  - aerophone
72
- - edge-blown aerophone
73
- default_clefs:
79
+ - reed
80
+ - double_reed
81
+ - wind
82
+ - woodwind
83
+ family: woodwind
84
+ standard_staves:
74
85
  - treble_clef
75
- voice: soprano
76
86
  organ:
77
87
  classifications:
78
88
  - aerophone
79
89
  - keyboard
80
- default_clefs:
90
+ standard_staves:
91
+ - treble_clef
92
+ - bass_clef
93
+ - bass_clef
94
+ piano:
95
+ classifications:
96
+ - chordophone
97
+ - keyboard
98
+ - percussion
99
+ - string
100
+ family: percussion
101
+ standard_staves:
81
102
  - treble_clef
82
103
  - bass_clef
104
+ trombone:
105
+ classifications:
106
+ - aerophone
107
+ - brass
108
+ - wind
109
+ family: brass
110
+ standard_staves:
111
+ - bass_clef
112
+ trumpet:
113
+ classifications:
114
+ - aerophone
115
+ - brass
116
+ - wind
117
+ family: brass
118
+ standard_staves:
119
+ - treble_clef
120
+ tuba:
121
+ classifications:
122
+ - aerophone
123
+ - brass
124
+ - wind
125
+ family: brass
126
+ standard_staves:
83
127
  - bass_clef
128
+ viola:
129
+ family: string
130
+ classifications:
131
+ - bowed
132
+ - chordophone
133
+ - string
134
+ standard_staves:
135
+ - alto_clef
136
+ violin:
137
+ alias_name_keys:
138
+ - fiddle
139
+ classifications:
140
+ - bowed
141
+ - chordophone
142
+ - string
143
+ family: string
144
+ standard_staves:
145
+ - treble_clef
@@ -17,7 +17,7 @@ class HeadMusic::Instrument
17
17
  INSTRUMENTS.map { |key, _data| get(key) }.sort_by(&:name)
18
18
  end
19
19
 
20
- attr_reader :name_key, :family, :default_clefs, :classifications, :voice
20
+ attr_reader :name_key, :family, :standard_staves, :classifications
21
21
 
22
22
  def ==(other)
23
23
  to_s == other.to_s
@@ -67,9 +67,8 @@ class HeadMusic::Instrument
67
67
  def initialize_data_from_record(record)
68
68
  @name_key = record['name_key'].to_sym
69
69
  @family = record['family']
70
- @default_clefs = record['default_clefs'] || []
70
+ @standard_staves = record['standard_staves'] || []
71
71
  @classifications = record['classifications'] || []
72
- @voice = record['voice'].to_s
73
72
  self.name = I18n.translate(name_key, scope: 'instruments', locale: 'en', default: inferred_name)
74
73
  end
75
74
 
@@ -86,6 +86,7 @@ de:
86
86
  hammered_dulcimer: Hackbrett
87
87
  harp: Harfe
88
88
  harpsichord: Cembalo
89
+ horn: Horn
89
90
  lute: Laute
90
91
  mandolin: Mandoline
91
92
  marimba: Marimbaphon
@@ -124,6 +124,7 @@ en:
124
124
  hammered_dulcimer: hammered dulcimer
125
125
  harp: harp
126
126
  harpsichord: harpsichord
127
+ horn: horn
127
128
  lute: lute
128
129
  mandolin: mandolin
129
130
  maracas: maracas
@@ -80,6 +80,7 @@ es:
80
80
  hammered_dulcimer: dulcémele
81
81
  harp: arpa
82
82
  harpsichord: clavecémbalo
83
+ horn: corno
83
84
  lute: laúd
84
85
  mandolin: mandolina
85
86
  marimba: marimba
@@ -92,6 +92,7 @@ fr:
92
92
  hammered_dulcimer: tympanon
93
93
  harp: harpe
94
94
  harpsichord: clavecin
95
+ horn: cor
95
96
  lute: luth
96
97
  mandolin: mandoline
97
98
  marimba: marimba
@@ -84,6 +84,7 @@ it:
84
84
  hammered_dulcimer: salterio
85
85
  harp: arpa
86
86
  harpsichord: clavicembalo
87
+ horn: corno
87
88
  lute: liuto
88
89
  mandolin: mandolino
89
90
  marimba: marimba
@@ -40,6 +40,7 @@ ru:
40
40
  hammered_dulcimer: tsimbaly
41
41
  harp: arfa
42
42
  harpsichord: klavesin
43
+ horn: Gorn
43
44
  lute: liutnia
44
45
  mandolin: mandolina
45
46
  marimba: marimba
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HeadMusic
4
- VERSION = '0.25.0'
4
+ VERSION = '0.26.0'
5
5
  end
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: 0.25.0
4
+ version: 0.26.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: 2020-08-14 00:00:00.000000000 Z
11
+ date: 2020-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport