She sells sea shells by the sea shore.
Warning: this feature of PatchMaster is brand new. The commands or their syntax may change as I play with IRB mode. So, please give me your feedback.
PatchMaster’s IRB mode lets you interactively define connections, send patch changes, and transpose and otherwise filter your MIDI setup. It’s intended more for experimentation and jamming, where you don’t know ahead of time exactly how you want your setup configured.
Because of this, there are no songs or patches and no jumping from one to the other. Another way to think about it is that you’re in one live patch that is constantly being redefined as you add connections.
Starting IRB Mode
-i flag to start PatchMaster within an IRB console.
On startup IRB mode looks for the file .patchmasterrc in the current
directory and loads that file. If it does not exist, IRB mode looks for the
pm_help to get a list of all the PatchMaster commands available.
There are a few new commands, and a few that behave slightly differently
then when they’re in a PatchMaster file.
All of the commands that are avilable in PatchMaster files are available to you here, but a few work slightly differently, and a few more just don’t make sense.
Though you can give a block to a
connection command just like you do in a
PatchMaster file, the commands that are normally in such blocks (
filter) also work outside of the block and affect
the most recently defined connection. So for example, these two are
Don’t make any sense
clear deletes all connections.
panic sends an all-notes-off message.
panic! does the same thing and
then sends individual note-off messages for all notes on all channels.
Tips & Tricks
Store your setup (input, output, alias_output, etc.) in
To load a file from within IRB:
myfile.rb isn’t on your Ruby load path you’ll see an error like
“LoadError: cannot load such file – myfile”. In that case, there are three
Start PatchMaster using the
ruby command and add the proper directory
-I command line argument:
Specify Full Path to File
Modify Load Path
Have a few favorite connection configurations? Shove them into a file,
either one configuration in each file or all in one file in different
methods. For example, say you’ve created the file
myfile.rb that contains
Then you can
require "myfile" (or
require "/path/to/myfile" if it’s not
in your load path) and type
chocolate to switch between the
two setups you’ve defined.