Driver for Opcode Studio 128X MIDI Patchbay, including web interface and shell. Developed by Fabian Hummel for Klangwerkstatt Graz (March 2020). Large parts of 'patchbay_matrix/patchbay_driver' based on the reverse engineering work done by Maxwell Pray (@synthead).
pip install -r requirements.txt
- You need a USB <--> RS232 cable with the appropriate drivers installed.
- Make sure the correct serial port (e.g. '/dev/usb.ttyserial') is set in 'shell.py' and 'patchbay_matrix/init.py'.
python server.py
- Navigate to http://localhost:5000 in your browser
- Click connect
- Play around
Note: If you disconnect the device or serial cable while the software thinks it's connected you may encounted some strange behaviour. Clicking Connect twice should solve the problem in most cases, but you may have to restart the Opcode Studio 128X and/or the software.
You can set custom channel names for your hardware configuration in 'patchbay_matrix/channel_names.py'. Additionally, you can set a standard routing configuration in 'patchbay_matrix/RoutingMatrix.py'. This works independently of the routing patches stored on the Opcode Studio 128X.
python shell.py
Enable MIDI routing from input a (1-8) to output b (1-8):
x.route(a, b)
Disable MIDI routing from input a to output b:
x.route(a, b, enable = False)
Select patch number n (1-8):
x.select_patch(n)
Store current configuration in patch number n (1-8):
x.store_patch(n)
More commands are available but not implemented. See 'patchbay_matrix/patchbay_driver/hexcodes.py' for more info.