midi 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -0
- data/lib/micromidi.rb +16 -14
- data/lib/micromidi/context.rb +3 -0
- data/lib/micromidi/instructions/shorthand.rb +3 -0
- metadata +8 -8
data/README.rdoc
CHANGED
@@ -87,6 +87,7 @@ I've written up a few posts explaining each of the concepts used here in greater
|
|
87
87
|
* {Binding Custom Input Events}[http://tx81z.blogspot.com/2011/08/micromidi-custom-events.html]
|
88
88
|
* {Shorthand}[http://tx81z.blogspot.com/2011/08/micromidi-shorthand.html]
|
89
89
|
* {Sysex}[http://tx81z.blogspot.com/2011/09/generating-sysex-messages-with.html]
|
90
|
+
* {Etc}[http://tx81z.blogspot.com/2011/09/more-micromidi-tricks.html]
|
90
91
|
|
91
92
|
== Documentation
|
92
93
|
|
data/lib/micromidi.rb
CHANGED
@@ -8,13 +8,15 @@
|
|
8
8
|
#
|
9
9
|
|
10
10
|
# libs
|
11
|
-
require
|
12
|
-
|
13
|
-
require
|
11
|
+
require "forwardable"
|
12
|
+
|
13
|
+
require "midi-eye"
|
14
|
+
require "midi-message"
|
15
|
+
require "unimidi"
|
14
16
|
|
15
17
|
module MicroMIDI
|
16
18
|
|
17
|
-
VERSION = "0.0.
|
19
|
+
VERSION = "0.0.8"
|
18
20
|
|
19
21
|
module Instructions
|
20
22
|
end
|
@@ -51,17 +53,17 @@ end
|
|
51
53
|
MIDI = MicroMIDI
|
52
54
|
|
53
55
|
# modules
|
54
|
-
require
|
56
|
+
require "micromidi/instructions/composite"
|
55
57
|
|
56
58
|
# classes
|
57
|
-
require
|
58
|
-
require
|
59
|
-
require
|
60
|
-
require
|
61
|
-
require
|
62
|
-
require
|
63
|
-
require
|
64
|
-
require
|
59
|
+
require "micromidi/context"
|
60
|
+
require "micromidi/state"
|
61
|
+
require "micromidi/instructions/process"
|
62
|
+
require "micromidi/instructions/input"
|
63
|
+
require "micromidi/instructions/message"
|
64
|
+
require "micromidi/instructions/output"
|
65
|
+
require "micromidi/instructions/sticky"
|
66
|
+
require "micromidi/instructions/sysex"
|
65
67
|
|
66
68
|
# re-open
|
67
|
-
require
|
69
|
+
require "micromidi/instructions/shorthand"
|
data/lib/micromidi/context.rb
CHANGED
@@ -33,10 +33,13 @@ module MicroMIDI
|
|
33
33
|
|
34
34
|
class Message
|
35
35
|
alias_method :c, :control_change
|
36
|
+
alias_method :ca, :channel_aftertouch
|
36
37
|
alias_method :cc, :control_change
|
37
38
|
alias_method :n, :note
|
38
39
|
alias_method :no, :note_off
|
39
40
|
alias_method :o, :off
|
41
|
+
alias_method :pa, :polyphonic_aftertouch
|
42
|
+
alias_method :pb, :pitch_bend
|
40
43
|
alias_method :pc, :program_change
|
41
44
|
end
|
42
45
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: midi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-09-
|
12
|
+
date: 2011-09-18 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: midi-eye
|
16
|
-
requirement: &
|
16
|
+
requirement: &70231410284120 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.1.3
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70231410284120
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: midi-message
|
27
|
-
requirement: &
|
27
|
+
requirement: &70231410283440 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.2.2
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70231410283440
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: unimidi
|
38
|
-
requirement: &
|
38
|
+
requirement: &70231410282960 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: 0.2.3
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70231410282960
|
47
47
|
description: A Ruby DSL for MIDI
|
48
48
|
email:
|
49
49
|
- ari.russo@gmail.com
|