Sha256: 3ffef039c79cf550e07995fcbdc6fec9d5f7139731e4c8442b5bba1f39066e82

Contents?: true

Size: 318 Bytes

Versions: 1

Compression:

Stored size: 318 Bytes

Contents

require 'midiops'
require 'unimidi'

ob = MIDIOps::Observer.new

ob.on [144, 50, 127] do
  puts "PRESS NORMAL!!!!!"
end

ob.on_key 0, 'C3' do |i|
  puts "PRESS!!!!!: #{i}"
end

ob.on_key 0, 'C#3' do
  puts "press c#!!!!"
end

ob.on_pitchbend 0 do |a, b|
  puts "Pitchbend!!!: #{a}, #{b}"
  p a, b
end

ob.listen_first

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
midiops-0.3.0 example/args.rb