module MIDIInstrument::API::Output

Output convenience methods

Public Class Methods

included(base) click to toggle source
# File lib/midi-instrument/api.rb, line 39
def self.included(base)
  base.send(:extend, Forwardable)
  base.send(:def_delegators, :@output, :mute, :toggle_mute, :mute=, :muted?, :mute?)
end

Public Instance Methods

outputs() click to toggle source

MIDI output devices @return [Array<UniMIDI::Output>]

# File lib/midi-instrument/api.rb, line 46
def outputs
  @output.devices
end
transmit_channel() click to toggle source

MIDI channel messages will be optionally forced to have this channel when outputted @return [Fixnum, nil]

# File lib/midi-instrument/api.rb, line 52
def transmit_channel
  @output.channel
end
Also aliased as: tx_channel
transmit_channel=(channel) click to toggle source

Set an optional MIDI channel to force channel notes into when outputted @return [Fixnum, nil]

# File lib/midi-instrument/api.rb, line 59
def transmit_channel=(channel)
  @output.channel = channel
end
Also aliased as: tx_channel=
tx_channel()
Alias for: transmit_channel
tx_channel=(channel)
Alias for: transmit_channel=