ffi-coremidi 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/coremidi.rb +1 -1
- data/lib/coremidi/destination.rb +6 -6
- data/lib/coremidi/device.rb +1 -1
- metadata +10 -5
data/lib/coremidi.rb
CHANGED
data/lib/coremidi/destination.rb
CHANGED
@@ -9,6 +9,8 @@ module CoreMIDI
|
|
9
9
|
|
10
10
|
include Endpoint
|
11
11
|
|
12
|
+
attr_reader :entity
|
13
|
+
|
12
14
|
# close this output
|
13
15
|
def close
|
14
16
|
#error = Map.MIDIClientDispose(@handle)
|
@@ -51,17 +53,16 @@ module CoreMIDI
|
|
51
53
|
def puts(*a)
|
52
54
|
case a.first
|
53
55
|
when Array then puts_bytes(*a.first)
|
54
|
-
|
55
|
-
|
56
|
+
when Numeric then puts_bytes(*a)
|
57
|
+
when String then puts_bytestr(*a)
|
56
58
|
end
|
57
59
|
end
|
58
60
|
alias_method :write, :puts
|
59
61
|
|
60
|
-
# enable this device
|
62
|
+
# enable this device
|
61
63
|
def enable(options = {}, &block)
|
62
|
-
#connect
|
63
64
|
@enabled = true
|
64
|
-
|
65
|
+
if block_given?
|
65
66
|
begin
|
66
67
|
yield(self)
|
67
68
|
ensure
|
@@ -135,7 +136,6 @@ module CoreMIDI
|
|
135
136
|
|
136
137
|
SysexCompletionCallback =
|
137
138
|
FFI::Function.new(:void, [:pointer]) do |sysex_request_ptr|
|
138
|
-
p 'hi'
|
139
139
|
# this isn't working for some reason
|
140
140
|
# as of now, we don't need it though
|
141
141
|
end
|
data/lib/coremidi/device.rb
CHANGED
@@ -65,7 +65,7 @@ module CoreMIDI
|
|
65
65
|
# assign all of this Device's endpoints an consecutive local id
|
66
66
|
def populate_endpoint_ids(starting_id)
|
67
67
|
i = 0
|
68
|
-
entities.
|
68
|
+
entities.each { |entity| i += entity.populate_endpoint_ids(i + starting_id) }
|
69
69
|
i
|
70
70
|
end
|
71
71
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffi-coremidi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.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: 2012-
|
12
|
+
date: 2012-09-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,12 @@ dependencies:
|
|
21
21
|
version: '1.0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.0'
|
25
30
|
description: Realtime MIDI IO with Ruby for OSX
|
26
31
|
email:
|
27
32
|
- ari.russo@gmail.com
|
@@ -61,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
66
|
version: 1.3.6
|
62
67
|
requirements: []
|
63
68
|
rubyforge_project: ffi-coremidi
|
64
|
-
rubygems_version: 1.8.
|
69
|
+
rubygems_version: 1.8.23
|
65
70
|
signing_key:
|
66
71
|
specification_version: 3
|
67
72
|
summary: Realtime MIDI IO with Ruby for OSX
|