head_music 5.0.0 → 6.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/lib/head_music/content/voice.rb +7 -1
- 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 +4 -4
- 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/key_signature/enharmonic_equivalence.rb +30 -0
- data/lib/head_music/key_signature.rb +12 -34
- data/lib/head_music/motion.rb +3 -1
- data/lib/head_music/pitch_class_set.rb +2 -5
- data/lib/head_music/scale.rb +4 -0
- data/lib/head_music/version.rb +1 -1
- data/lib/head_music.rb +3 -2
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64230af5264efb58e93a127cc3ad7528f9fd33f663b98ba117bb49d746e500ce
|
4
|
+
data.tar.gz: c6c72eb473869b2aa01dc80f37d54787dda8816f0ac46404d365ee30431f6eab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c049302d49e156b572c3dc0aeb8b9cf59db93ec77ca0e0636c4a64375e4c5648a886ec21ec3e63077981c938317841989df0825c153848aef45b16b13117df2a
|
7
|
+
data.tar.gz: 4dddb70eeb88d7ae04f4184365c791d650731524c2d35c6a300b22227bc24fba921c9efa3d6fa9a0212a7a4f43e2680a0c0cdfbbcc580b11ea17bc9e39ebc4be
|
data/.rubocop.yml
CHANGED
@@ -105,7 +105,9 @@ class HeadMusic::Content::Voice
|
|
105
105
|
end
|
106
106
|
|
107
107
|
def to_s
|
108
|
-
|
108
|
+
return pitches_string if role.to_s.strip == ""
|
109
|
+
|
110
|
+
[role, pitches_string].join(": ")
|
109
111
|
end
|
110
112
|
|
111
113
|
private
|
@@ -114,4 +116,8 @@ class HeadMusic::Content::Voice
|
|
114
116
|
@placements << placement
|
115
117
|
@placements = @placements.sort
|
116
118
|
end
|
119
|
+
|
120
|
+
def pitches_string
|
121
|
+
pitches.first(10).map(&:to_s).join(" ")
|
122
|
+
end
|
117
123
|
end
|