music-transcription 0.5.9 → 0.5.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/music-transcription/tempo.rb +5 -0
- data/lib/music-transcription/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: c5a2fe8f5cd88b188a02996d8cda9c12c496513f
|
4
|
+
data.tar.gz: 2e4a25eb76fe5ac98d928acc253a7784190d7a05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e4992d64b4d6dc135c0a28c878f036683c0188c666738eee42d9e4cc8281d1acffb5317912fe42e1accbb450da1c8d149043b290bd7ad1bcc2533e0b2aa6099
|
7
|
+
data.tar.gz: 3cf61df796185c129dbc7f539449d6f8b91ee55f007ffc158825c8adc4189ed15998d1d6267bc24634f74f6d8908a200adc1ff48a6675f19b099baa9c3436092
|
@@ -11,6 +11,11 @@ class Tempo
|
|
11
11
|
@beat_duration = beat_duration
|
12
12
|
end
|
13
13
|
|
14
|
+
def ==(other)
|
15
|
+
(other.beats_per_minute == @beats_per_minute) &&
|
16
|
+
(other.beat_duration == @beat_duration)
|
17
|
+
end
|
18
|
+
|
14
19
|
def notes_per_second
|
15
20
|
(@beats_per_minute * @beat_duration) / 60.0
|
16
21
|
end
|