Class: Diamond::MIDI::Node
- Inherits:
-
Object
- Object
- Diamond::MIDI::Node
- Defined in:
- lib/diamond/midi.rb
Overview
An access point for dealing with all MIDI functionality for the instrument
Instance Method Summary collapse
-
#initialize(devices, options = {}) ⇒ Node
constructor
Initialize MIDI input and output.
Methods included from Output
Methods included from Input
#add, #enable_note_control, #enable_parameter_control, included, #remove
Constructor Details
#initialize(devices, options = {}) ⇒ Node
Initialize MIDI input and output
160 161 162 163 164 165 |
# File 'lib/diamond/midi.rb', line 160 def initialize(devices, = {}) @debug = .fetch(:debug, false) @midi = MIDIInstrument::Node.new initialize_input(devices[:input], ) initialize_output(devices[:output], ) end |