Line 129:
Line 129:
===CUIA Callable UI Actions===
===CUIA Callable UI Actions===
−
The Zynthian may be controlled by MIDI messages applied to the Master MIDI Channel defined in The Webconf Interface
+
The Zynthian may be controlled by MIDI messages applied to the Master MIDI Channel (default 16) defined in The Webconf Interface
+
+
The Interface allows applying on MIDI IN commands on channel 16 (default) that mimic various zynthian gui interface commands with some functional short cuts also provided ('POWER_OFF', ALL_NOTES_OFF').
+
+
The Message is sent as a Note on Message (0x9)
+
+
So To Power Off a zynthian one sends
+
0xF9 ( Channel 16 Note ON)
+
0x00 ( Note code for POWER_OFF as below )
+
0x00 (Velocity/parameter)
+
+
This is why you should operate secure networks . . . :-D
+
+
+
# Zynthian Main GUI Class
+
#-------------------------------------------------------------------------------
+
+
class zynthian_gui:
+
+
screens_sequence = ("admin","layer","bank","preset","control")
+
+
note2cuia = {
+
"0": "POWER_OFF",
+
"1": "REBOOT",
+
"2": "RESTART_UI",
+
"3": "RELOAD_MIDI_CONFIG",
+
+
"10": "ALL_NOTES_OFF",
+
"11": "ALL_SOUNDS_OFF",
+
"12": "ALL_OFF",
+
+
"51": "SELECT",
+
"52": "SELECT_DOWN",
+
"53": "SELECT_UP",
+
+
"64": "SWITCH_BACK_SHORT",
+
"63": "SWITCH_BACK_BOLD",
+
"62": "SWITCH_BACK_LONG",
+
"65": "SWITCH_SELECT_SHORT",
+
"66": "SWITCH_SELECT_BOLD",
+
"67": "SWITCH_SELECT_LONG",
+
"60": "SWITCH_LAYER_SHORT",
+
"61": "SWITCH_LAYER_BOLD",
+
"59": "SWITCH_LAYER_LONG",
+
"71": "SWITCH_SNAPSHOT_SHORT",
+
"72": "SWITCH_SNAPSHOT_BOLD",
+
"73": "SWITCH_SNAPSHOT_LONG"
+
}