musician 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/files/song.rb +6 -0
- 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: a24cae27533f98ff5e6efc2d6a29fd5dbb9eaa1c
|
4
|
+
data.tar.gz: dc38bae199112096122f03113813fa926f3d470e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 720944e72c8b1b96539b0ed567b4ae496883517f980a027a711a3be5a207a0b59a0470fca8fd3143040609d04f7e3fb73be7517151cdc822906e13116da87d4b
|
7
|
+
data.tar.gz: 18bb880a7c8a7690a58f1eb59102065dad79afe9b5b7aab1c3137486e87078367b488f12357a14ed602943877acd1dbf6cef90b2d34ab437444b05d381bc66a0
|
data/lib/files/song.rb
CHANGED
@@ -13,6 +13,12 @@ class Song
|
|
13
13
|
@tempo = ""
|
14
14
|
end
|
15
15
|
|
16
|
+
def chord_names
|
17
|
+
chords.map do |chord|
|
18
|
+
chord.name
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
16
22
|
def key_change(new_key, option=:sharp)
|
17
23
|
# unless new_key.instance_of? Chord then new_key = Chord.new(new_key)
|
18
24
|
new_key = Chord.new(new_key) # もうすでにChordクラスであればこれを飛ばすようにする
|