midi-topaz 0.0.3 → 0.0.4

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.
@@ -28,6 +28,10 @@ module Topaz
28
28
  @interval = val / 4
29
29
  end
30
30
 
31
+ def interval
32
+ @interval * 4
33
+ end
34
+
31
35
  # stop the timer
32
36
  def stop(*a)
33
37
  @action[:on_stop].call unless @action[:on_stop].nil?
data/lib/topaz.rb CHANGED
@@ -17,6 +17,6 @@ require 'topaz/tempo'
17
17
 
18
18
  module Topaz
19
19
 
20
- VERSION = "0.0.3"
20
+ VERSION = "0.0.4"
21
21
 
22
22
  end
@@ -40,4 +40,14 @@ class InternalTempoTest < Test::Unit::TestCase
40
40
 
41
41
  end
42
42
 
43
+ def test_internal_interval
44
+ tempo = Tempo.new(120)
45
+
46
+ assert_equal(4, tempo.interval)
47
+
48
+ tempo.interval = 8
49
+
50
+ assert_equal(8, tempo.interval)
51
+ end
52
+
43
53
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: midi-topaz
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3
5
+ version: 0.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ari Russo