Module: Patch::IO::MIDI
- Extended by:
- MIDI
- Included in:
- MIDI
- Defined in:
- lib/patch/io/midi.rb,
lib/patch/io/midi/input.rb,
lib/patch/io/midi/action.rb,
lib/patch/io/midi/output.rb,
lib/patch/io/midi/message.rb
Overview
MIDI IO
Defined Under Namespace
Modules: Action, Message Classes: Input, Output
Constant Summary collapse
- KEY =
Key that will be used by Patch to identify the module
:midi
Instance Method Summary collapse
-
#new_from_config(config, options = {}) ⇒ MIDI::Input, MIDI::Output
Instantiate a MIDI device based on the given config.
Instance Method Details
#new_from_config(config, options = {}) ⇒ MIDI::Input, MIDI::Output
Instantiate a MIDI device based on the given config
25 26 27 28 |
# File 'lib/patch/io/midi.rb', line 25 def new_from_config(config, = {}) klass = get_direction_class(config[:direction]) klass.new(config[:id], config[:name], :log => [:log]) end |