head_music 0.6.0 → 0.6.1

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: 823f43abc378e376a7302ceb5338ba72e2a29ed6
4
- data.tar.gz: 0f4759f0ab0699dabca8510df197e7c19141011b
3
+ metadata.gz: c170d6e42778ba1d5fed1352602d2b0d4306551f
4
+ data.tar.gz: 79db32b224e31c1ea69768e4daa7bf0a8881b664
5
5
  SHA512:
6
- metadata.gz: 54cb6e28840e3578e3ec278410be1f79c919943153f7d20b99ffcf9c5e856b326ddd7123a833ed4df469205d9919b8aa35a81f2c5e4d905bfe58407218d38955
7
- data.tar.gz: 847ee46aebc7cb4b415641bfd94eb4826959f55d754bee89006c9dab3c86c7b923e18317396b75fc3d421bf40ff1b97f2f66420bbe2e2eb28823ffa32b86cc61
6
+ metadata.gz: 606e63dcb742a33eec7d49fd36fbc9e3b2d03eb3ff052aa56219d694b61f47d034ed74950c0210a28c18721eff3b24f6cdd2fda229143512765c2900dfb6dc23
7
+ data.tar.gz: 570d61ec85e7480d2f940fae62f3d211ed6103d4b33606d5a492294c903767a61267b8fd94025d0c614b6e3fbf2938a2a4ce631646d309373969963ceee2bd7a
@@ -62,7 +62,7 @@ class HeadMusic::LetterName
62
62
  end
63
63
 
64
64
  def steps_to(other, direction = :ascending)
65
- other = LetterName.get(other)
65
+ other = HeadMusic::LetterName.get(other)
66
66
  other_position = other.position
67
67
  if direction == :descending
68
68
  other_position -= NAMES.length if other_position > position
@@ -80,7 +80,7 @@ class HeadMusic::Pitch
80
80
  end
81
81
 
82
82
  def +(value)
83
- Pitch.get(self.to_i + value.to_i)
83
+ HeadMusic::Pitch.get(self.to_i + value.to_i)
84
84
  end
85
85
 
86
86
  def -(value)
@@ -7,7 +7,7 @@ class HeadMusic::PitchClass
7
7
 
8
8
  def self.get(identifier)
9
9
  @pitch_classes ||= {}
10
- number = Spelling.get(identifier).pitch_class.to_i if Spelling.match(identifier)
10
+ number = HeadMusic::Spelling.get(identifier).pitch_class.to_i if HeadMusic::Spelling.match(identifier)
11
11
  number ||= identifier.to_i % 12
12
12
  @pitch_classes[number] ||= new(number)
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module HeadMusic
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
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.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Head