device = os.open("/dev/midi2", os.O_RDWR)
"/dev/midi2" is the path to your device,probably will be in the same path.
Turn tuner on :
Turn tuner off:
python3 main.py tuner on
Turn tuner off:
python3 main.py tuner off
If you need to know patches name python3 main.py patch list
will return something like this.
A0
A1
A2
A3
A4
A5
A6
A7
A8
A9
...
Change patches for A0: python3 main.py patch A0
Change patches for B0: python3 main.py patch B0