midiops 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 085a82aad8264f698430e464c9ebd7097e3248af
4
- data.tar.gz: b4442ec22eeafc92902d3c4b893e5668b5be9b49
3
+ metadata.gz: 84f9ed7cdb22a8b66de7cedc7e72d2da7bda13d9
4
+ data.tar.gz: a3c781e36bf5c57acbe9f4dc5cf1f8819d589092
5
5
  SHA512:
6
- metadata.gz: eaa508783840081753f0f0d067665c140842b7eaef3b191086a0b2e6d9a5fd73752b4d14baa13c40ad46bc4366fe4012d992ec960cf70551e64f86db7114e2da
7
- data.tar.gz: 437b67cab3ab35c05ec02c8aadcf29709cb7dd4eae45b241281b1b74cc1be7057e9f6e56d45f73983148fd4b1e08cdb46415504707704043334e6a10d64c70f7
6
+ metadata.gz: 2e7c97e2e98bec7cb5d12567623ebd241f4d08c3723872569c70dc6d065bef097c8d04a781862021de2eca1493e01a549d93802c82e1416e4ebf44517e024e61
7
+ data.tar.gz: 71a31274090af5ac001a1ca53bc347d6dedfc3ddc06d415310cdb8b1387602861e02f823ec2d47dfc73671c4425a208cdd367259fa3a2307da9ed334abd83477
data/README.md CHANGED
@@ -48,6 +48,8 @@ Connect some MIDI keyboard and execute the script, then press key C5 or D5 on yo
48
48
 
49
49
  See `/examples` for more materials.
50
50
 
51
+ Notes are like `'C3'`, `'B-1'`, `'C#4'` (sharp) or `'Db5'` (flat)
52
+
51
53
  ## Development
52
54
 
53
55
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -16,8 +16,7 @@ ob.on_key 0, 'C#3' do
16
16
  end
17
17
 
18
18
  ob.on_pitchbend 0 do |a, b|
19
- puts "Pitchbend!!!: #{a}, #{b}"
20
- p a, b
19
+ puts "Pitchbend!!!: #{a}, #{b} -> #{b*128 + a}"
21
20
  end
22
21
 
23
22
  ob.listen_first
@@ -53,7 +53,7 @@ module MIDIOps
53
53
 
54
54
  case status
55
55
  when Status::HAS_HANDLER
56
- defer @handlers.get_by_keys(*@events, event), @handler_args
56
+ defer @handlers.get_by_keys(*@events, event), @handler_args.dup
57
57
  clear_state
58
58
  when Status::HAS_HANDLER_WITH_ARG
59
59
  @handler_args << event
@@ -1,3 +1,3 @@
1
1
  module MIDIOps
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: midiops
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - polamjag