head_music 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/head_music/letter_name.rb +1 -1
- data/lib/head_music/pitch.rb +1 -1
- data/lib/head_music/pitch_class.rb +1 -1
- data/lib/head_music/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c170d6e42778ba1d5fed1352602d2b0d4306551f
|
|
4
|
+
data.tar.gz: 79db32b224e31c1ea69768e4daa7bf0a8881b664
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/head_music/pitch.rb
CHANGED
|
@@ -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
|
data/lib/head_music/version.rb
CHANGED