midi-topaz 0.0.1 → 0.0.2

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.
data/README.rdoc CHANGED
@@ -62,7 +62,7 @@ If you are syncing to external clock, nothing will happen until a "start" or "cl
62
62
 
63
63
  ==== Other things to note
64
64
 
65
- Whether or not you are using an internal or external clock source, the event block will be called at quarter note intervals by default. If you wish to change this set the option :interval. In this case, 16th notes will occur at 138 BPM
65
+ Whether or not you are using an internal or external clock source, the event block will be called at quarter note intervals by default. If you wish to change this set the option :interval. In this case, the event will be fired 4 times per beat (16th notes) at 138 BPM
66
66
 
67
67
  @tempo = Topaz::Tempo.new(138, :interval => 16) { seq.step }
68
68
 
@@ -24,15 +24,18 @@ module Topaz
24
24
  def start(*a)
25
25
  @action[:on_start].call unless @action[:on_start].nil?
26
26
  @clock.start(*a)
27
+ self
27
28
  end
28
29
 
29
30
  def stop(*a)
30
31
  @action[:on_stop].call unless @action[:on_stop].nil?
31
32
  @clock.start(*a)
33
+ self
32
34
  end
33
35
 
34
36
  def join
35
37
  @clock.join
38
+ self
36
39
  end
37
40
 
38
41
  #
@@ -20,6 +20,7 @@ module Topaz
20
20
  @action[:on_start].call unless @action[:on_start].nil?
21
21
  run
22
22
  join unless options[:background]
23
+ self
23
24
  end
24
25
 
25
26
  # change the timer's click interval
@@ -30,7 +31,13 @@ module Topaz
30
31
  # stop the timer
31
32
  def stop(*a)
32
33
  @action[:on_stop].call unless @action[:on_stop].nil?
33
- super
34
+ super()
35
+ self
36
+ end
37
+
38
+ def join
39
+ super()
40
+ self
34
41
  end
35
42
 
36
43
  protected
data/lib/topaz.rb CHANGED
@@ -17,6 +17,6 @@ require 'topaz/tempo'
17
17
 
18
18
  module Topaz
19
19
 
20
- VERSION = "0.0.1"
20
+ VERSION = "0.0.2"
21
21
 
22
22
  end
@@ -17,12 +17,5 @@ class InternalTempoTest < Test::Unit::TestCase
17
17
 
18
18
  assert_equal(count_to, i)
19
19
  end
20
-
21
- def test_timer
22
- i = 0
23
- count_to = 5
24
-
25
- tempo = Tempo.new(60) { i += 1 }
26
- end
27
20
 
28
21
  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.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ari Russo
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-26 00:00:00 -04:00
13
+ date: 2011-05-28 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency