I was quite frustrated because the Zynthian freezes quite often while using it…
So I wanted to be able to restart the Gui and services easily, without the need of an ssh client. Moreover, I intend to use the Zynthian for playing live so I need a quick way to get the box up and ready quickly !
I have just made an experiment with mididing and I am quite happy so far.
Mididing is available on the repo and based on Python and you can run shell commands upon a midi event.
So I made the following script:
from mididings import * config( backend='jack-rt', ) run( CtrlFilter(45) >> System('systemctl restart zynthian') )
All it does is ‘systemctl restart zynthian’ when the midi control 45 event is received.
To run the mididing service:
mididings -f my_midi_bash_script.py
Next, you have to connect the new mididing midi device to your midi controler:
I did it graphically using qjackctl to be quick but it would be better to use the aconnect command.
I hope this is helpful