M8C Module for Patchbox OS
Introduction
This is a module for Patchbox OS to autostart M8C on boot. Since this module was developed specifically for Raspberry Pi 4, it should be used together with m8c-rpi4. There are three main benefits of using this module:
-
Automatically start the M8 Client on Raspberry Pi boot without having to resort to
systemd
orcrontab
, which simplifies the installation process; -
Automatically connect the prefered MIDI devices, listed in the amidiauto.conf configuration file;
-
Switch between different Patchbox OS modules such as MODEP, Orac or Pure Data, which will let you take full advantage of this audio oriented OS and use the Raspberry Pi for far more things than just running the M8C.
Please note that this project is not affiliated with Dirtywave and there is no guarantee or support from either the manufacturer or myself. You can use it at your own risk.
Install
To install this module, run the command below:
patchbox module install https://github.com/RowdyVoyeur/m8c-rpi4-module
The module expects to have m8c-rpi4 already installed at home/patch/m8c-rpi4
and the script to be executable by everyone. Please read the installation guide for mode details.
To activate the module, just run the following:
patchbox module activate m8c-rpi4-module
Alternatively, run patchbox
, go to modules menu and select m8c-rpi4-module
module.
MIDI Configuration
The amidiauto.conf configuration file will tell the system which MIDI devices should be automatically connected on boot and what is their routing.
As you can see, in this configuration file, the MC-101 and M8 can both send and receive MIDI from each other, nanoKONTROL can send MIDI to M8 and other hardware and software is not allowed to automatically connect ports.
To customise the MIDI connections to your personal needs, you will have to edit the amidiauto.conf file with the following command:
sudo nano usr/local/patchbox-modules/imported/m8c-rpi4-module/amidiauto.conf
You should also visit this page to understand how things work and, if necessary, list all the connected MIDI devices to find their names with the following command:
aconnect -l
Deactivate and Uninstall
To deactivate the module, just run:
patchbox module deactivate
Alternatively, run patchbox
, go to modules menu and select none
module.
This module is installed in /usr/local/patchbox-modules/imported/
, so if you wish to completely delete it run:
cd /
cd usr/local/patchbox-modules/imported
sudo rm -rf m8c-rpi4-module
Notes
This module has been tested with Patchbox OS version 2022-05-17. Please let me know if you're having issues running it on different Patchbox OS versions.
References
Learn more about patchbox modules