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 +1 -1
- data/lib/topaz/external_midi_tempo.rb +3 -0
- data/lib/topaz/internal_tempo.rb +8 -1
- data/lib/topaz.rb +1 -1
- data/test/test_internal_tempo.rb +0 -7
- metadata +2 -2
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,
|
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
|
#
|
data/lib/topaz/internal_tempo.rb
CHANGED
@@ -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
data/test/test_internal_tempo.rb
CHANGED
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.
|
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-
|
13
|
+
date: 2011-05-28 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|