micromidi 0.1.5 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/micromidi.rb +1 -1
- data/lib/micromidi/module_methods.rb +1 -1
- data/test/context_test.rb +4 -4
- data/test/message_test.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ed01f3826ddb408c9426e43ef2698d4b4f8ac58
|
4
|
+
data.tar.gz: 172ae101c70305edb8a938488460b0e9f6fedd6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a35e057a57790ca3d08e98b073abed22a5b7dfefeede754e436be1c218e3cf02a5f1abfbede47abd35c34ed35946e92e85a89c20177471fb67d7536d63e1b0b1
|
7
|
+
data.tar.gz: 69af68aa68a6faad1641befdc3116dc696169ab82513c23110c5a1d3f0218d5c3a653bd29889224d0341c76ae3edf21b65d48efbd77b2e78b844e4be12dfacf7
|
data/lib/micromidi.rb
CHANGED
data/test/context_test.rb
CHANGED
@@ -4,7 +4,7 @@ class ContextTest < Minitest::Test
|
|
4
4
|
|
5
5
|
def test_new_with_block
|
6
6
|
msg = nil
|
7
|
-
MIDI::
|
7
|
+
MIDI::Session.new do
|
8
8
|
msg = note "C0"
|
9
9
|
end
|
10
10
|
assert_equal(MIDIMessage::NoteOn, msg.class)
|
@@ -13,7 +13,7 @@ class ContextTest < Minitest::Test
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def test_new_with_no_block
|
16
|
-
m = MIDI::
|
16
|
+
m = MIDI::Session.new
|
17
17
|
msg = m.note "C0"
|
18
18
|
assert_equal(MIDIMessage::NoteOn, msg.class)
|
19
19
|
assert_equal(12, msg.note)
|
@@ -22,7 +22,7 @@ class ContextTest < Minitest::Test
|
|
22
22
|
|
23
23
|
def test_exception
|
24
24
|
msg = nil
|
25
|
-
m = MIDI::
|
25
|
+
m = MIDI::Session.new
|
26
26
|
assert_raises(ArgumentError) do
|
27
27
|
m.edit do
|
28
28
|
msg = m.note
|
@@ -32,7 +32,7 @@ class ContextTest < Minitest::Test
|
|
32
32
|
|
33
33
|
def test_edit
|
34
34
|
msg = nil
|
35
|
-
m = MIDI::
|
35
|
+
m = MIDI::Session.new
|
36
36
|
m.edit do
|
37
37
|
msg = m.note "C0"
|
38
38
|
end
|
data/test/message_test.rb
CHANGED
@@ -11,7 +11,7 @@ class MessageTest < Minitest::Test
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def test_channel_aftertouch
|
14
|
-
m = MicroMIDI::
|
14
|
+
m = MicroMIDI::Session.new
|
15
15
|
msg = m.channel_aftertouch 2, :channel => 1
|
16
16
|
assert_equal(MIDIMessage::ChannelAftertouch, msg.class)
|
17
17
|
assert_equal(1, msg.channel)
|
@@ -19,7 +19,7 @@ class MessageTest < Minitest::Test
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def test_poly_aftertouch
|
22
|
-
m = MicroMIDI::
|
22
|
+
m = MicroMIDI::Session.new
|
23
23
|
msg = m.poly_aftertouch 64, 2, :channel => 1
|
24
24
|
assert_equal(MIDIMessage::PolyphonicAftertouch, msg.class)
|
25
25
|
assert_equal(1, msg.channel)
|
@@ -28,7 +28,7 @@ class MessageTest < Minitest::Test
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def test_pitch_bend
|
31
|
-
m = MicroMIDI::
|
31
|
+
m = MicroMIDI::Session.new
|
32
32
|
msg = m.pitch_bend 64, 2, :channel => 1
|
33
33
|
assert_equal(MIDIMessage::PitchBend, msg.class)
|
34
34
|
assert_equal(1, msg.channel)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: micromidi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ari Russo
|
@@ -224,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
224
224
|
version: 1.3.6
|
225
225
|
requirements: []
|
226
226
|
rubyforge_project: micromidi
|
227
|
-
rubygems_version: 2.
|
227
|
+
rubygems_version: 2.4.6
|
228
228
|
signing_key:
|
229
229
|
specification_version: 4
|
230
230
|
summary: A Ruby DSL for MIDI
|