midi-jruby 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/midi-jruby/api.rb +4 -2
- data/lib/midi-jruby/input.rb +4 -2
- data/lib/midi-jruby/output.rb +4 -2
- data/lib/midi-jruby.rb +1 -1
- 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: bf744e9581d62124eb169e965e65336596666bf4
|
4
|
+
data.tar.gz: 700d475d1a7591fb7a99d1360ac109b6f07594e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a397868270cff0ff3874e1314d2365d62e97c64575909f31168da64b6b8f1faf7c1da611c6ac969be579fa26ac67bfa6bb1eb1f52b4a99e45331a150afb2160e
|
7
|
+
data.tar.gz: ad596c9e7c07ddcb83e7fd6cc4e1c73771eb1d07bdd31c0298517e9d1902c0cf99e7858348ce0b72b9545fbed5d903eed1c11da281b30b999ef019bfbfce4b37
|
data/README.md
CHANGED
@@ -28,7 +28,7 @@ Otherwise
|
|
28
28
|
|
29
29
|
## Issues
|
30
30
|
|
31
|
-
There is [an issue](http://stackoverflow.com/questions/8148898/java-midi-in-mac-osx-broken) that causes javax.sound.midi not to be able to send SysEx messages in some versions.
|
31
|
+
There is [an issue](http://stackoverflow.com/questions/8148898/java-midi-in-mac-osx-broken) that causes javax.sound.midi not to be able to send SysEx messages in some versions of OSX.
|
32
32
|
|
33
33
|
## Documentation
|
34
34
|
|
data/lib/midi-jruby/api.rb
CHANGED
@@ -67,8 +67,10 @@ module MIDIJRuby
|
|
67
67
|
# @param [Java::ComSunMediaSound::MidiOutDevice] device
|
68
68
|
# @return [Boolean]
|
69
69
|
def close_output(device)
|
70
|
-
@receiver[device].
|
71
|
-
|
70
|
+
unless @receiver[device].nil?
|
71
|
+
@receiver[device].close
|
72
|
+
@receiver.delete(device)
|
73
|
+
end
|
72
74
|
device.close
|
73
75
|
true
|
74
76
|
end
|
data/lib/midi-jruby/input.rb
CHANGED
data/lib/midi-jruby/output.rb
CHANGED
@@ -46,8 +46,10 @@ module MIDIJRuby
|
|
46
46
|
# @param [Proc] block
|
47
47
|
# @return [Output]
|
48
48
|
def enable(options = {}, &block)
|
49
|
-
|
50
|
-
|
49
|
+
unless @enabled
|
50
|
+
API.enable_output(@device)
|
51
|
+
@enabled = true
|
52
|
+
end
|
51
53
|
if block_given?
|
52
54
|
begin
|
53
55
|
yield(self)
|
data/lib/midi-jruby.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: midi-jruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ari Russo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Realtime MIDI IO with JRuby using the javax.sound.midi API
|
14
14
|
email:
|