Method: PM::InputInstrument#initialize
- Defined in:
- lib/patchmaster/instrument.rb
#initialize(sym, name, port_num, use_midi = true) ⇒ InputInstrument
If port is nil (the normal case), creates either a real or a mock port
25 26 27 28 29 30 |
# File 'lib/patchmaster/instrument.rb', line 25 def initialize(sym, name, port_num, use_midi=true) super(sym, name, port_num, input_port(port_num, use_midi)) @connections = [] @triggers = [] @listener = nil end |