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: 6ee796cb3bb39a7c883ef5fecff41ead56379c3a
4
- data.tar.gz: 35bc35b0515ea35214ee16b8a6375db44ad87ed2
3
+ metadata.gz: 8dc54a35d0ca69398e7352fe88520e30115b024e
4
+ data.tar.gz: 10f9dcfd37919dd40d23af0f4b411f727917cbcd
5
5
  SHA512:
6
- metadata.gz: f95982b86a3367e79908aba86aa4b718d57fe29be9ddd101bd5cf718be0d12d34b746050e57286258e4f2894188e0741615f48af96b90fba974ce5f8c4bd9ee7
7
- data.tar.gz: def4f16467102b4d9b8e3cf8a1dbdd8e36af1d3e76a8c5410d9ac331ece35e06083fbddd6543cf8cab7f7f19b11183d06374ea5f915f49ad090e20101fd57f6a
6
+ metadata.gz: 152d346e22b19611840ffcf664cd846b27c1ffa1f75352ac0c9a4f9e7be0433c03fbf506e43a4b9169e627d1092a7cba13f21680269b1089d3c0ac4c312d802f
7
+ data.tar.gz: c8441b1f2eabb346daadbdd0c331c742f22ca2937dd86c53056b20bebb629eb0aca678ba91ee0c6590d6979609c59b2257ac792644a09c1da2779a9eb5663bc2
@@ -185,7 +185,7 @@ class HeadMusic::FunctionalInterval
185
185
  end
186
186
 
187
187
  def <=>(other)
188
- if !other.is_a?(FunctionalInterval)
188
+ if !other.is_a?(HeadMusic::FunctionalInterval)
189
189
  other = self.class.get(other)
190
190
  end
191
191
  self.semitones <=> other.semitones
@@ -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
@@ -1,3 +1,3 @@
1
1
  module HeadMusic
2
- VERSION = "0.14.7"
2
+ VERSION = "0.14.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: head_music
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.7
4
+ version: 0.14.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Head