module MIDIInstrument::API::Input
Input
convenience methods
Public Class Methods
included(base)
click to toggle source
# File lib/midi-instrument/api.rb, line 9 def self.included(base) base.send(:extend, Forwardable) base.send(:def_delegators, :@input, :omni_on) end
Public Instance Methods
inputs()
click to toggle source
MIDI input devices @return [Array<UniMIDI::Input>]
# File lib/midi-instrument/api.rb, line 16 def inputs @input.devices end
receive_channel()
click to toggle source
MIDI channel messages will only be acknowledged if they have this optional specified channel @return [Fixnum, nil]
# File lib/midi-instrument/api.rb, line 22 def receive_channel @input.channel end
Also aliased as: rx_channel
receive_channel=(channel)
click to toggle source
Set the receive channel @return [Fixnum, nil]
# File lib/midi-instrument/api.rb, line 29 def receive_channel=(channel) @input.channel = channel end
Also aliased as: rx_channel=