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 +4 -4
- data/lib/head_music/data/instruments.yml +113 -51
- data/lib/head_music/instrument.rb +2 -3
- data/lib/head_music/locales/de.yml +1 -0
- data/lib/head_music/locales/en.yml +1 -0
- data/lib/head_music/locales/es.yml +1 -0
- data/lib/head_music/locales/fr.yml +1 -0
- data/lib/head_music/locales/it.yml +1 -0
- data/lib/head_music/locales/ru.yml +1 -0
- data/lib/head_music/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 075be1fb94f05c68709ec7a1ea42e7eac644be0dc08bb0b9ff22d2ceddc8434e
|
4
|
+
data.tar.gz: 3142cf455d26bcf98d228d11d6593b5fbde19ac1a61bddae4b354bd0ebaf9a12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2ceb87fe6d81f8c2994f81e402979ba72d77834f1fefc3751919530989ae47448cbe4a9ef59009bf88e2325fc520209aff993b5c0368f7c4a4dae6d83398f1f
|
7
|
+
data.tar.gz: a6c9cb9952f288f155cc224ab9b26ae9046f9cdbcb870e12b8bd7f4f5477727cfcd9fdda3f8b3a64ab3cdaff019412281cd9ef45e4c3da2b43b16b1258ab81a0
|
@@ -1,83 +1,145 @@
|
|
1
1
|
---
|
2
|
-
|
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
|
-
-
|
14
|
-
-
|
15
|
-
-
|
16
|
-
|
17
|
-
-
|
4
|
+
- aerophone
|
5
|
+
- reed
|
6
|
+
- double_reed
|
7
|
+
- wind
|
8
|
+
- woodwind
|
9
|
+
family: woodwind
|
10
|
+
standard_staves:
|
18
11
|
- bass_clef
|
19
|
-
|
20
|
-
family: string
|
12
|
+
cello:
|
21
13
|
alias_name_keys:
|
22
|
-
-
|
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
|
-
|
44
|
-
|
45
|
-
default_clefs:
|
19
|
+
family: string
|
20
|
+
standard_staves:
|
46
21
|
- bass_clef
|
47
|
-
|
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
|
-
|
37
|
+
family: string
|
38
|
+
standard_staves:
|
55
39
|
- bass_clef
|
56
|
-
|
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
|
-
|
72
|
+
- string
|
73
|
+
standard_staves:
|
64
74
|
- treble_clef
|
65
75
|
- bass_clef
|
66
|
-
|
67
|
-
family: woodwind
|
76
|
+
oboe:
|
68
77
|
classifications:
|
69
|
-
- woodwind
|
70
|
-
- wind
|
71
78
|
- aerophone
|
72
|
-
-
|
73
|
-
|
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
|
-
|
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, :
|
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
|
-
@
|
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
|
|
data/lib/head_music/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2020-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|