Method: PM::PatchMaster#run

Defined in:
lib/patchmaster/patchmaster.rb

#runObject

Run PatchMaster without the GUI. Don’t use this when using PM::Main. If there is a GUI then forward this request to it. Otherwise, call #start, wait for inputs’ MIDIEye listener threads to finish, then call #stop. Note that normally nothing stops those threads, so this is used as a way to make sure the script doesn’t quit until killed by something like SIGINT.



123
124
125
126
127
128
129
130
131
# File 'lib/patchmaster/patchmaster.rb', line 123

def run
  if @gui
    @gui.run
  else
    start(true)
    @inputs.each { |input| input.listener.join }
    stop
  end
end