head_music 0.14.7 → 0.14.8
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8dc54a35d0ca69398e7352fe88520e30115b024e
|
4
|
+
data.tar.gz: 10f9dcfd37919dd40d23af0f4b411f727917cbcd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 152d346e22b19611840ffcf664cd846b27c1ffa1f75352ac0c9a4f9e7be0433c03fbf506e43a4b9169e627d1092a7cba13f21680269b1089d3c0ac4c312d802f
|
7
|
+
data.tar.gz: c8441b1f2eabb346daadbdd0c331c742f22ca2937dd86c53056b20bebb629eb0aca678ba91ee0c6590d6979609c59b2257ac792644a09c1da2779a9eb5663bc2
|
@@ -4,7 +4,7 @@ class HeadMusic::HarmonicInterval
|
|
4
4
|
def initialize(voice1, voice2, position)
|
5
5
|
@voice1 = voice1
|
6
6
|
@voice2 = voice2
|
7
|
-
@position = position.is_a?(String) ? Position.new(voice1.composition, position) : position
|
7
|
+
@position = position.is_a?(String) ? HeadMusic::Position.new(voice1.composition, position) : position
|
8
8
|
end
|
9
9
|
|
10
10
|
def functional_interval
|
@@ -6,9 +6,9 @@ class HeadMusic::RhythmicValue
|
|
6
6
|
|
7
7
|
def self.get(identifier)
|
8
8
|
case identifier
|
9
|
-
when RhythmicValue
|
9
|
+
when HeadMusic::RhythmicValue
|
10
10
|
identifier
|
11
|
-
when RhythmicUnit
|
11
|
+
when HeadMusic::RhythmicUnit
|
12
12
|
new(identifier)
|
13
13
|
when Symbol, String
|
14
14
|
identifier = identifier.to_s.downcase.strip.gsub(/\W+/, '_')
|
@@ -86,7 +86,7 @@ class HeadMusic::Style::Annotation
|
|
86
86
|
def functional_interval_from_tonic(note)
|
87
87
|
tonic_to_use = tonic_pitch
|
88
88
|
while tonic_to_use > note.pitch
|
89
|
-
tonic_to_use -= Interval.named(:perfect_octave)
|
89
|
+
tonic_to_use -= HeadMusic::Interval.named(:perfect_octave)
|
90
90
|
end
|
91
91
|
HeadMusic::FunctionalInterval.new(tonic_to_use, note.pitch)
|
92
92
|
end
|
data/lib/head_music/version.rb
CHANGED