midi-message 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/midi-message/constant.rb +1 -1
- data/lib/midi-message/note_message.rb +1 -1
- data/lib/midi-message.rb +1 -1
- data/test/constants_test.rb +7 -5
- 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: 3524480addf08fbff3d0ff0895a035b24cebf1d8
|
4
|
+
data.tar.gz: 83faadad1ad868779a0a22354d1dc877d4ec5d4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9aeefc9a4b4dd10e1a9cb42771ca5266fe90cf461654694b0aba55415178da6ec26c1b3c04c5bbc085417be2c4f6cd3d0a0f30046b09329079ead357f6cd971
|
7
|
+
data.tar.gz: ab692acd6ec98d41c5b9c538f59dc0159a1431c977bf7dd738ce452e07fa05b726cfc075dcccceda3a393024996bc6d6fa5351d53171aec8e75596f5a40390fe
|
data/lib/midi-message.rb
CHANGED
data/test/constants_test.rb
CHANGED
@@ -7,14 +7,16 @@ class ConstantsTest < Minitest::Test
|
|
7
7
|
assert_equal(MIDIMessage::NoteOn, msg.class)
|
8
8
|
assert_equal("C3", msg.name)
|
9
9
|
assert_equal("C", msg.note_name)
|
10
|
+
assert_equal("Note On: C3", msg.verbose_name)
|
10
11
|
assert_equal([0x90, 0x30, 100], msg.to_a)
|
11
12
|
end
|
12
13
|
|
13
|
-
def
|
14
|
-
msg = MIDIMessage::
|
15
|
-
assert_equal(MIDIMessage::
|
16
|
-
assert_equal("
|
17
|
-
assert_equal(
|
14
|
+
def test_note_off
|
15
|
+
msg = MIDIMessage::NoteOff["C2"].new(0, 100)
|
16
|
+
assert_equal(MIDIMessage::NoteOff, msg.class)
|
17
|
+
assert_equal("C2", msg.name)
|
18
|
+
assert_equal("Note Off: C2", msg.verbose_name)
|
19
|
+
assert_equal([0x80, 0x24, 100], msg.to_a)
|
18
20
|
end
|
19
21
|
|
20
22
|
def test_control_change
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: midi-message
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ari Russo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|