-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathSkinMK2.py
338 lines (318 loc) · 6.81 KB
/
SkinMK2.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
from _Framework.Skin import Skin
from .Colors import Rgb
from _Framework.ButtonElement import Color
class Colors:
class DefaultButton:
On = Rgb.GREEN
Off = Rgb.GREEN_HALF
Disabled = Rgb.BLACK
class Mode: #mode buttons colour
class Session:
On = Rgb.GREEN
Off = Rgb.GREEN_HALF
class Note:
On = Rgb.LIGHT_BLUE
Off = Rgb.LIGHT_BLUE_HALF
class Drum:
On = Rgb.YELLOW
Off = Rgb.YELLOW_HALF
class Device:
On = Rgb.PURPLE
Off = Rgb.PURPLE_HALF
class StepSequencer:
On = Rgb.MINT
Off = Rgb.MINT_HALF
class StepSequencer2:
On = Rgb.ORANGE
Off = Rgb.ORANGE_HALF
class User:
On = Rgb.DARK_BLUE
Off = Rgb.DARK_BLUE_HALF
class RecordArm:
On = Rgb.RED
Off = Rgb.RED_HALF
class TrackSelect:
On = Rgb.LIGHT_BLUE
Off = Rgb.LIGHT_BLUE_HALF
class Mute:
On = Rgb.YELLOW
Off = Rgb.YELLOW_HALF
class Solo:
On = Rgb.BLUE
Off = Rgb.BLUE_HALF
class Volume:
On = Rgb.GREEN
Off = Rgb.GREEN_HALF
class Pan:
On = Rgb.ORANGE
Off = Rgb.ORANGE_HALF
class Sends:
On = Rgb.WHITE
Off = Rgb.DARK_GREY
class StopClip:
On = Rgb.RED
Off = Rgb.RED_HALF
class Scrolling:
Enabled = Rgb.YELLOW_HALF
Pressed = Rgb.YELLOW
Disabled = Rgb.BLACK
class Misc:
UserMode = Rgb.DARK_BLUE
Shift = Rgb.DARK_GREY
ShiftOn = Rgb.WHITE
class Session:
#scene
SceneTriggered = Rgb.GREEN_BLINK
Scene = Rgb.GREEN
NoScene = Rgb.BLACK
#clip states
ClipStarted = Rgb.GREEN_PULSE
ClipStopped = Rgb.RED_HALF
ClipRecording = Rgb.RED_PULSE
ClipEmpty = Rgb.BLACK
#trigs
ClipTriggeredPlay = Rgb.GREEN_BLINK
ClipTriggeredRecord = Rgb.RED_BLINK
RecordButton = Rgb.RED_HALF
#stop button
StopClip = Rgb.RED
StopClipTriggered = Rgb.RED_BLINK
Enabled = Rgb.GREEN
Off = Rgb.GREEN_HALF
class Zooming:#session zoomin
Selected = Rgb.AMBER
Stopped = Rgb.RED
Playing = Rgb.GREEN
Empty = Rgb.BLACK
class Mixer:
ArmOn = Rgb.RED
ArmOff = Rgb.RED_HALF
SoloOn = Rgb.BLUE
SoloOff = Rgb.BLUE_HALF
MuteOn = Rgb.YELLOW_HALF
MuteOff = Rgb.YELLOW
Selected = Rgb.LIGHT_BLUE
Unselected = Rgb.LIGHT_BLUE_HALF
Volume = Rgb.GREEN
Pan = Rgb.ORANGE
Sends = Rgb.WHITE
class Sends:
A = Rgb.DARK_BLUE
AAvail = Rgb.DARK_BLUE_HALF
B = Rgb.BLUE
BAvail = Rgb.BLUE_HALF
C = Rgb.LIGHT_BLUE
CAvail = Rgb.LIGHT_BLUE_HALF
D = Rgb.MINT
DAvail = Rgb.MINT_HALF
E = Rgb.DARK_YELLOW
EAvail = Rgb.DARK_YELLOW_HALF
F = Rgb.YELLOW
FAvail = Rgb.YELLOW_HALF
G = Rgb.ORANGE
GAvail = Rgb.ORANGE_HALF
H = Rgb.RED
HAvail = Rgb.RED_HALF
class Device:#device mode colours
class Bank:
On = Rgb.BLUE
Off = Rgb.BLUE_HALF
class Lock:
Empty = Rgb.PURPLE
Set = Rgb.RED_HALF
Locked = Rgb.RED
class Slider:
On = Rgb.PURPLE
Off = Rgb.PURPLE_HALF
class PrecisionSlider:
On = Rgb.DARK_BLUE
Off = Rgb.DARK_BLUE_HALF
class Enum:
On = Rgb.ORANGE
Off = Rgb.ORANGE_HALF
class BigEnum:
On = Rgb.YELLOW
Off = Rgb.YELLOW_HALF
class Toggle:
On = Rgb.RED
Off = Rgb.RED_HALF
class StepSequencer:
class Scale:
On = Rgb.RED
Off = Rgb.RED_HALF
class Octave:
On = Rgb.RED
Off = Rgb.RED_HALF
class Mute:
On = Rgb.RED
Off = Rgb.RED_HALF
class Mode:
On = Rgb.AMBER
Off = Rgb.AMBER_HALF
class Lock:
class ToTrack:
On = Rgb.RED
Off = Rgb.RED_HALF
class ToClip:
On = Rgb.PURPLE
Off = Rgb.PURPLE_HALF
class LoopSelector:
SelectedPlaying = Rgb.PURPLE
Playing = Rgb.PURPLE_HALF
Selected = Rgb.BLUE
InLoop = Rgb.BLUE_HALF
class Quantization:
One=Rgb.BLACK
Two=Rgb.GREEN_HALF
Three=Rgb.GREEN
Four=Rgb.GREEN
class NoteSelector:
class Octave:
On = Rgb.GREEN
Off = Rgb.GREEN_HALF
Selected = Rgb.GREEN
Playing = Rgb.RED
class NoteEditor:
class VelocityShifted:
On = Rgb.ORANGE
Off = Rgb.ORANGE_HALF
Velocity0 = Color(27)
Velocity1 = Color(26)
Velocity2 = Color(25)
Velocity3 = Color(24)
Muted = Rgb.DARK_GREY
Playing = Rgb.RED
Metronome = Rgb.BLUE
NoteMarker = Rgb.AMBER
PageMarker = Rgb.YELLOW
class StepSequencer2:
class Pitch:
On = Rgb.DARK_BLUE
Dim = Rgb.DARK_BLUE_HALF
Off = Rgb.BLACK
class Octave:
On = Rgb.PURPLE
Dim = Rgb.PURPLE_HALF
Off = Rgb.BLACK
class Velocity:
On = Rgb.LIGHT_BLUE
Dim = Rgb.LIGHT_BLUE_HALF
Off = Rgb.BLACK
class Length:
On = Rgb.MINT
Dim = Rgb.MINT_HALF
Off = Rgb.BLACK
class Random:
On = Rgb.RED
Off = Rgb.RED
class NoteEditor:
MetronomeInPage = Rgb.BLUE
MetronomeInOtherPage = Rgb.BLUE_HALF
PlayInPage = Rgb.RED
PlayInOtherPage = Rgb.RED_HALF
class Recording:
On = Rgb.RED
Off = Rgb.RED_HALF
Transition = Rgb.RED_BLINK
class TrackController:
class Recording:
On = Rgb.RED
Off = Rgb.RED_HALF
class ImplicitRecording:
On = Rgb.RED
Off = Rgb.RED_HALF
class Play:
On = Rgb.RED
Off = Rgb.RED_HALF
class Stop:
On = Rgb.RED
Off = Rgb.RED_HALF
class Mute:
On = Rgb.RED
Off = Rgb.RED_HALF
class Undo:
On = Rgb.RED
Off = Rgb.RED_HALF
class Solo:
On = Rgb.AMBER
Off = Rgb.AMBER_HALF
class DrumGroup:
PadEmpty = Rgb.BLACK
PadFilled = Rgb.YELLOW
PadSelected = Rgb.LIGHT_BLUE
PadSelectedNotSoloed = Rgb.LIGHT_BLUE
PadMuted = Rgb.DARK_ORANGE
PadMutedSelected = Rgb.LIGHT_BLUE
PadSoloed = Rgb.DARK_BLUE
PadSoloedSelected = Rgb.LIGHT_BLUE
PadInvisible = Rgb.BLACK
PadAction = Rgb.RED
class Mute:
On = Rgb.ORANGE
Off = Rgb.DARK_ORANGE
class Solo:
On = Rgb.BLUE
Off = Rgb.DARK_BLUE
class Note:
FeedbackRecord = Rgb.RED
Feedback = Rgb.GREEN
class Octave:
On = Rgb.GREEN
Off = Rgb.GREEN_HALF
class Scale:
On = Rgb.AMBER
Off = Rgb.AMBER_HALF
class Pads:
Root = Rgb.BLUE
InScale = Rgb.LIGHT_BLUE_HALF
Highlight = Rgb.LIGHT_BLUE
OutOfScale = Rgb.DARK_GREY
Invalid = Rgb.BLACK
class Scale:#scale edition
class AbsoluteRoot:
On = Rgb.RED
Off = Rgb.RED_HALF
class Mode:
On = Rgb.RED
Off = Rgb.RED_HALF
class Key:
On = Rgb.GREEN
Off = Rgb.GREEN_HALF
CircleOfFifths = Rgb.BLUE
RelativeScale = Rgb.BLUE
class Octave:
On = Rgb.RED
Off = Rgb.RED_HALF
class Modus:
On = Rgb.BLUE
Off = Rgb.BLUE_HALF
class QuickScale:
On = Rgb.AMBER
Off = Rgb.AMBER_HALF
class QuickScale:#quick scale on top of instrument mode
class Modus:
On = Rgb.AMBER
Off = Rgb.AMBER_HALF
class Major: # quick scale while in major mode
class Key:
On = Rgb.AMBER
Off = Rgb.AMBER_HALF
CircleOfFifths = Rgb.RED
RelativeScale = Rgb.RED
Mode = Rgb.GREEN
class Minor:
class Key:
On = Rgb.RED
Off = Rgb.RED_HALF
CircleOfFifths = Rgb.AMBER
RelativeScale = Rgb.AMBER
Mode = Rgb.GREEN
class Other:
class Key:
On = Rgb.GREEN
Off = Rgb.GREEN_HALF
CircleOfFifths = Rgb.RED
RelativeScale = Rgb.RED
Mode = Rgb.GREEN
def make_skin():
return Skin(Colors)