midi 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
 
@@ -8,13 +8,15 @@
8
8
  #
9
9
 
10
10
  # libs
11
- require 'midi-eye'
12
- require 'midi-message'
13
- require 'unimidi'
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.7"
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 'micromidi/instructions/composite'
56
+ require "micromidi/instructions/composite"
55
57
 
56
58
  # classes
57
- require 'micromidi/context'
58
- require 'micromidi/state'
59
- require 'micromidi/instructions/process'
60
- require 'micromidi/instructions/input'
61
- require 'micromidi/instructions/message'
62
- require 'micromidi/instructions/output'
63
- require 'micromidi/instructions/sticky'
64
- require 'micromidi/instructions/sysex'
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 'micromidi/instructions/shorthand'
69
+ require "micromidi/instructions/shorthand"
@@ -6,8 +6,11 @@ module MicroMIDI
6
6
  class Context
7
7
 
8
8
  include Instructions::Composite
9
+ extend Forwardable
9
10
 
10
11
  attr_reader :state
12
+
13
+ def_delegator :state, :output_cache, :cache
11
14
 
12
15
  def initialize(ins, outs, &block)
13
16
 
@@ -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.7
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-17 00:00:00.000000000Z
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: &70198188893360 !ruby/object:Gem::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: *70198188893360
24
+ version_requirements: *70231410284120
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: midi-message
27
- requirement: &70198188892860 !ruby/object:Gem::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: *70198188892860
35
+ version_requirements: *70231410283440
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: unimidi
38
- requirement: &70198188892320 !ruby/object:Gem::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: *70198188892320
46
+ version_requirements: *70231410282960
47
47
  description: A Ruby DSL for MIDI
48
48
  email:
49
49
  - ari.russo@gmail.com