class Diamond::MIDI::Node
An access point for dealing with all MIDI
functionality for the instrument
Public Class Methods
new(devices, options = {})
click to toggle source
Initialize MIDI
input and output @param [Hash] devices @param [Hash] options @option options [Fixnum] :channel The receive channel (also: :rx_channel) @option options [Fixnum] :tx_channel The transmit channel
# File lib/diamond/midi.rb, line 160 def initialize(devices, options = {}) @debug = options.fetch(:debug, false) @midi = MIDIInstrument::Node.new initialize_input(devices[:input], options) initialize_output(devices[:output], options) end