-
Notifications
You must be signed in to change notification settings - Fork 0
/
scenedownlights.py
70 lines (63 loc) · 3.72 KB
/
scenedownlights.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
### Colors for Scene-down button
from device import midiOutMsg
import variables as var
import constants as cons
import colors
def Downbutton():
if not var.SHIFT_STATUS:
if var.SCENE_SEL == "Mixer":
if var.scmodes.get("MIXER_READYFOR") == "":
midiOutMsg(0xb0, 0, cons.scenedown_DATA1, colors.EMPTYWHITE)
elif var.scmodes.get("MIXER_READYFOR") == "Stop":
midiOutMsg(0xb2, 0, cons.scenedown_DATA1, colors.STOP)
elif var.scmodes.get("MIXER_READYFOR") == "Solo":
midiOutMsg(0xb2, 0, cons.scenedown_DATA1, colors.SOLO)
elif var.scmodes.get("MIXER_READYFOR") == "Mute":
midiOutMsg(0xb2, 0, cons.scenedown_DATA1, colors.MUTE)
elif var.SCENE_SEL == "Playlist":
if var.scmodes.get("PLAYLIST_READYFOR") == "":
midiOutMsg(0xb0, 0, cons.scenedown_DATA1, colors.EMPTYWHITE)
elif var.scmodes.get("PLAYLIST_READYFOR") == "Stop":
midiOutMsg(0xb2, 0, cons.scenedown_DATA1, colors.PLSTOP)
elif var.scmodes.get("PLAYLIST_READYFOR") == "Solo":
midiOutMsg(0xb2, 0, cons.scenedown_DATA1, colors.PLSOLO)
elif var.scmodes.get("PLAYLIST_READYFOR") == "Mute":
midiOutMsg(0xb2, 0, cons.scenedown_DATA1, colors.PLMUTE)
elif var.SCENE_SEL == "Channel rack":
if var.scmodes.get("CHANRACK_READYFOR") == "":
midiOutMsg(0xb0, 0, cons.scenedown_DATA1, colors.EMPTYWHITE)
elif var.scmodes.get("CHANRACK_READYFOR") == "Stop":
midiOutMsg(0xb2, 0, cons.scenedown_DATA1, colors.CRSTOP)
elif var.scmodes.get("CHANRACK_READYFOR") == "Solo":
midiOutMsg(0xb2, 0, cons.scenedown_DATA1, colors.CRSOLO)
elif var.scmodes.get("CHANRACK_READYFOR") == "Mute":
midiOutMsg(0xb2, 0, cons.scenedown_DATA1, colors.CRMUTE)
elif var.SCENE_SEL == "Piano roll":
if var.scmodes.get("PIANOROLL_READYFOR") == "":
midiOutMsg(0xb0, 0, cons.scenedown_DATA1, colors.EMPTYWHITE)
elif var.scmodes.get("PIANOROLL_READYFOR") == "Stop":
midiOutMsg(0xb2, 0, cons.scenedown_DATA1, colors.PRSTOP)
elif var.scmodes.get("PIANOROLL_READYFOR") == "Solo":
midiOutMsg(0xb2, 0, cons.scenedown_DATA1, colors.PRSOLO)
elif var.scmodes.get("PIANOROLL_READYFOR") == "Mute":
midiOutMsg(0xb2, 0, cons.scenedown_DATA1, colors.PRMUTE)
elif var.SCENE_SEL == "Plugin":
if var.scmodes.get("PLUGIN_READYFOR") == "":
midiOutMsg(0xb0, 0, cons.scenedown_DATA1, colors.EMPTYWHITE)
elif var.scmodes.get("PLUGIN_READYFOR") == "Stop":
midiOutMsg(0xb2, 0, cons.scenedown_DATA1, colors.PRSTOP)
elif var.scmodes.get("PLUGIN_READYFOR") == "Solo":
midiOutMsg(0xb2, 0, cons.scenedown_DATA1, colors.PRSOLO)
elif var.scmodes.get("PLUGIN_READYFOR") == "Mute":
midiOutMsg(0xb2, 0, cons.scenedown_DATA1, colors.PRMUTE)
elif var.SCENE_SEL == "Editor":
if var.scmodes.get("EDITOR_READYFOR") == "":
midiOutMsg(0xb0, 0, cons.scenedown_DATA1, colors.EMPTYWHITE)
elif var.scmodes.get("EDITOR_READYFOR") == "Stop":
midiOutMsg(0xb2, 0, cons.scenedown_DATA1, colors.STOP)
elif var.scmodes.get("EDITOR_READYFOR") == "Solo":
midiOutMsg(0xb2, 0, cons.scenedown_DATA1, colors.SOLO)
elif var.scmodes.get("EDITOR_READYFOR") == "Mute":
midiOutMsg(0xb2, 0, cons.scenedown_DATA1, colors.MUTE)
else:
midiOutMsg(0xb0, 0, cons.scenedown_DATA1, 0)