unimidi 0.1.0-i686-linux → 0.1.1-i686-linux

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -6,9 +6,9 @@ Platform independent realtime MIDI input and output for Ruby.
6
6
 
7
7
  == Features
8
8
 
9
- * Currently Linux, JRuby, Windows and Cygwin are supported. More platforms will follow (see "to-do")
9
+ * Currently Linux, JRuby, Windows and Cygwin are supported. OSX is {in progress}[http://github.com/arirusso/ffi-coremidi]
10
10
  * Both input and output to and from multiple devices concurrently
11
- * Agnostically handle different MIDI Message types (including SysEx)
11
+ * Agnostically handle different MIDI and SysEx Message types
12
12
 
13
13
  == Requirements
14
14
 
@@ -39,10 +39,6 @@ A couple of notes about JRuby only:
39
39
  == Documentation
40
40
 
41
41
  * {rdoc}[http://rdoc.info/gems/unimidi]
42
-
43
- == To-do
44
-
45
- * OSX {coremidi}[http://github.com/arirusso/coremidi] implementation once that lib is done
46
42
 
47
43
  == Author
48
44
 
@@ -19,7 +19,7 @@ module UniMIDI
19
19
  def open(*a, &block)
20
20
  begin
21
21
  @device.open(*a)
22
- block.call(self)
22
+ block.nil? ? block.call(self) : self
23
23
  ensure
24
24
  close
25
25
  end
@@ -94,11 +94,11 @@ module UniMIDI
94
94
 
95
95
  #
96
96
  # returns an array of MIDI event hashes as such:
97
- # [
98
- # { :data => [144, 60, 100], :timestamp => 1024 },
99
- # { :data => [128, 60, 100], :timestamp => 1100 },
100
- # { :data => [144, 40, 120], :timestamp => 1200 }
101
- # ]
97
+ # [
98
+ # { :data => [144, 60, 100], :timestamp => 1024 },
99
+ # { :data => [128, 60, 100], :timestamp => 1100 },
100
+ # { :data => [144, 40, 120], :timestamp => 1200 }
101
+ # ]
102
102
  #
103
103
  # the data is an array of Numeric bytes
104
104
  # the timestamp is the number of millis since this input was enabled
@@ -109,18 +109,19 @@ module UniMIDI
109
109
 
110
110
  #
111
111
  # same as gets but returns message data as string of hex digits as such:
112
- # [
113
- # { :data => "904060", :timestamp => 904 },
114
- # { :data => "804060", :timestamp => 1150 },
115
- # { :data => "90447F", :timestamp => 1300 }
116
- # ]
112
+ # [
113
+ # { :data => "904060", :timestamp => 904 },
114
+ # { :data => "804060", :timestamp => 1150 },
115
+ # { :data => "90447F", :timestamp => 1300 }
116
+ # ]
117
117
  #
118
118
  def gets_bytestr(*a)
119
119
  @device.gets_bytestr(*a)
120
120
  end
121
121
 
122
122
  #
123
- # returns an array of data bytes such as [144, 60, 100, 128, 60, 100, 144, 40, 120]
123
+ # returns an array of data bytes such as
124
+ # [144, 60, 100, 128, 60, 100, 144, 40, 120]
124
125
  #
125
126
  def gets_data(*a)
126
127
  arr = gets
@@ -128,7 +129,8 @@ module UniMIDI
128
129
  end
129
130
 
130
131
  #
131
- # returns a string of data such as "90406080406090447F"
132
+ # returns a string of data such as
133
+ # "90406080406090447F"
132
134
  #
133
135
  def gets_data_bytestr(*a)
134
136
  arr = gets_bytestr
data/lib/unimidi.rb CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  module UniMIDI
8
8
 
9
- VERSION = "0.1.0"
9
+ VERSION = "0.1.1"
10
10
 
11
11
  end
12
12
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: unimidi
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 0.1.1
6
6
  platform: i686-linux
7
7
  authors:
8
8
  - Ari Russo
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-30 00:00:00 -04:00
13
+ date: 2011-05-04 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency