Hey! Great to hear it worked!
You may contribute the new scripts to the Pisound repository, by forking it and creating a pull request once the changes are applied.
You could use the Pure Data as an example. The ‘common’ folder has 2 scripts which define start_puredata and stop_puredata shell functions which are common for The Button and the Pisound App. The start function expects to get the full path to the patch to start as the first argument. The stop function kills all Pure Data instances, in the future this may change to deal only with the exact instance that was started by The Button or the App. (so you should kill all sclang instances in your stop script at this time).
The actual ‘entry point’ scripts for The Button are in here: https://github.com/BlokasLabs/pisound/tree/master/scripts/pisound-btn
The Button specific start_puredata.sh script then includes the common script: . /usr/local/pisound/scripts/common/start_puredata.sh
. (The repository is checked out by default to /usr/local/pisound/ during Pisound software setup.) Then it goes on doing The Button specific things, like searching for a Pure Data patch to load in various locations, and once found, invoking the common start_puredata function.
The button actions in pisound-config
are populated based on the script filename, so if you’d create /usr/local/pisound/scripts/pisound-btn/start_supercollider.sh, you’d get Start Supercollider entry in the script picker menu.
Feel free to ask us any questions.