class PM::MockInputPort
Attributes
buffer[RW]
name[R]
Public Class Methods
is_compatible?(input)
click to toggle source
For MIDIEye::Listener
# File lib/patchmaster/instrument.rb, line 102 def self.is_compatible?(input) true end
new(arg)
click to toggle source
Constructor param is ignored; it's required by MIDIEye.
# File lib/patchmaster/instrument.rb, line 107 def initialize(arg) @name = "MockInputPort #{arg}" @buffer = [] end
Public Instance Methods
clear_buffer()
click to toggle source
# File lib/patchmaster/instrument.rb, line 120 def clear_buffer end
gets()
click to toggle source
# File lib/patchmaster/instrument.rb, line 112 def gets [{:data => [], :timestamp => 0}] end
poll() { |gets| ... }
click to toggle source
# File lib/patchmaster/instrument.rb, line 116 def poll yield gets end