Method: PM::PatchMaster#send_message
- Defined in:
- lib/patchmaster/patchmaster.rb
#send_message(name) ⇒ Object
Send the message with the given name to all outputs. Names are matched case-insensitively.
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 |
# File 'lib/patchmaster/patchmaster.rb', line 139 def (name) _correct_case_name, msg = @messages[name.downcase] if !msg ("Message \"#{name}\" not found") return end debug("Sending message \"#{name}\"") @outputs.each { |out| out.midi_out(msg) } # If the user accidentally calls send_message in a filter at the end, # then the filter will return whatever this method returns. Just in # case, return nil instead of whatever the preceding code would return. nil end |