-
Notifications
You must be signed in to change notification settings - Fork 82
/
SkinMK2.py
605 lines (485 loc) · 14.2 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
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
from _Framework.Skin import Skin
from .ColorsMK2 import Rgb
class Colors:
class DefaultButton:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
Disabled = Rgb.BLACK
class Mode: # mode buttons colour
class Session:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
class ProSession:
On = Rgb.MINT
Off = Rgb.MINT_THIRD
class Note:
On = Rgb.LIGHT_BLUE
Off = Rgb.LIGHT_BLUE_THIRD
class Drum:
On = Rgb.YELLOW
Off = Rgb.YELLOW_HALF
class Device:
On = Rgb.PURPLE
Off = Rgb.PURPLE_THIRD
class StepSequencer:
On = Rgb.PINK
Off = Rgb.PINK_THIRD
class StepSequencer2:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
class User:
On = Rgb.BLUE
Off = Rgb.BLUE_THIRD
class User2:
On = Rgb.BLUE
Off = Rgb.BLUE_THIRD
class Mixer:
On = Rgb.MINT
Off = Rgb.MINT_THIRD
class Track: # used in device component
On = Rgb.MINT
Off = Rgb.MINT_THIRD
class Session:
# scene
SceneTriggered = Rgb.GREEN_BLINK
Scene = Rgb.GREEN
NoScene = Rgb.BLACK
# clip states
ClipStarted = Rgb.GREEN_PULSE
ClipStopped = Rgb.RED_THIRD
ClipRecording = Rgb.RED_PULSE
ClipEmpty = Rgb.BLACK
# trigs
ClipTriggeredPlay = Rgb.GREEN_BLINK
ClipTriggeredRecord = Rgb.RED_BLINK
RecordButton = Rgb.RED_THIRD
# stop button
StopClip = Rgb.GREY
StopClipTriggered = Rgb.GREY_BLINK
# Enabled = Rgb.GREEN
# Off = Rgb.GREEN_THIRD
class ProSession: # session zoomin
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
ClipStarted = Rgb.GREEN_PULSE
ClipTriggeredPlay = Rgb.GREEN_BLINK
ClipStopped = Rgb.RED_THIRD
ClipFoldedTrack = Rgb.AMBER
ClipUnFoldedTrack = Rgb.AMBER_HALF
class Shift:
On = Rgb.WHITE
Off = Rgb.DARK_GREY
class Click:
On = Rgb.BLUE
Off = Rgb.BLUE_THIRD
class Undo:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
class Delete:
On = Rgb.RED_THIRD
Off = Rgb.RED_HALF
class Duplicate:
On = Rgb.BLUE_HALF
Off = Rgb.BLUE
class Double:
On = Rgb.PURPLE
Off = Rgb.PURPLE_THIRD
class Quantize:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
class SessionRec:
On = Rgb.RED
Off = Rgb.RED_THIRD
class SessionRecMode:
On = Rgb.RED_BLINK
Off = Rgb.RED_THIRD_BLINK
class LaunchQuant:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
class PlusMinus:
On = Rgb.AMBER
Idle = Rgb.AMBER_HALF
Off = Rgb.AMBER_THIRD
class Value:
On = Rgb.YELLOW
Idle = Rgb.YELLOW_HALF
Off = Rgb.YELLOW_THIRD
class FixedLength:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
class PlusMinus:
On = Rgb.AMBER
Idle = Rgb.AMBER_HALF
Off = Rgb.AMBER_THIRD
class Value:
On = Rgb.YELLOW
Idle = Rgb.YELLOW_HALF
Off = Rgb.YELLOW_THIRD
class Metronome:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
Nudge = Rgb.AMBER
DeltaOne = Rgb.RED_THIRD
DeltaFive = Rgb.RED
class RecQuant:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
class PlusMinus:
On = Rgb.AMBER
Idle = Rgb.AMBER_HALF
Off = Rgb.AMBER_THIRD
class Value:
On = Rgb.YELLOW
Idle = Rgb.YELLOW_HALF
Off = Rgb.YELLOW_THIRD
class Zooming: # session zoomin
Selected = Rgb.AMBER
Stopped = Rgb.RED
Playing = Rgb.GREEN
Empty = Rgb.BLACK
class Mixer:
class Arm:
On = Rgb.RED
Off = Rgb.RED_THIRD
class Solo:
On = Rgb.BLUE
Off = Rgb.BLUE_THIRD
class Mute:
On = Rgb.YELLOW_THIRD
Off = Rgb.YELLOW
class Stop:
On = Rgb.RED
Off = Rgb.RED_THIRD
class Selected:
On = Rgb.LIGHT_BLUE
Off = Rgb.LIGHT_BLUE_THIRD
class Volume:
On = Rgb.MINT
Off = Rgb.MINT_THIRD
class VolumeSlider:
On = Rgb.MINT
Off = Rgb.BLACK
class Pan:
On = Rgb.MINT
Off = Rgb.MINT_THIRD
class PanSlider:
On = Rgb.MINT
Off = Rgb.BLACK
class Sends:
On = Rgb.MINT
Off = Rgb.MINT_THIRD
class SendsSlider:
On = Rgb.MINT
Off = Rgb.BLACK
class SendsSlider_1:
On = Rgb.MINT
Off = Rgb.BLACK
class SendsSlider_2:
On = Rgb.MINT
Off = Rgb.BLACK
class Sends: # not used yet on legacy launchpad
A = Rgb.BLUE
AAvail = Rgb.BLUE_THIRD
B = Rgb.BLUE
BAvail = Rgb.BLUE_THIRD
C = Rgb.LIGHT_BLUE
CAvail = Rgb.LIGHT_BLUE_THIRD
D = Rgb.MINT
DAvail = Rgb.MINT_THIRD
E = Rgb.AMBER
EAvail = Rgb.AMBER_THIRD
F = Rgb.YELLOW
FAvail = Rgb.YELLOW_THIRD
G = Rgb.AMBER
GAvail = Rgb.AMBER_THIRD
H = Rgb.RED
HAvail = Rgb.RED_THIRD
class Device: # device mode colours
class Bank:
On = Rgb.BLUE
Off = Rgb.BLUE_THIRD
class Lock:
Empty = Rgb.PURPLE
Set = Rgb.RED_THIRD
Locked = Rgb.RED
class DefaultSlider:
On = Rgb.PURPLE
Off = Rgb.PURPLE_THIRD
class CustomSlider0:
On = Rgb.PURPLE
Third = Rgb.PURPLE_THIRD
Half = Rgb.PURPLE_HALF
Off = Rgb.BLACK
class CustomSlider1:
On = Rgb.PURPLE
Third = Rgb.PURPLE_THIRD
Half = Rgb.PURPLE_HALF
Off = Rgb.BLACK
class CustomSlider2:
On = Rgb.LIGHT_BLUE
Third = Rgb.LIGHT_BLUE_THIRD
Half = Rgb.LIGHT_BLUE_HALF
Off = Rgb.BLACK
class CustomSlider3:
On = Rgb.LIGHT_BLUE
Third = Rgb.LIGHT_BLUE_THIRD
Half = Rgb.LIGHT_BLUE_HALF
Off = Rgb.BLACK
class CustomSlider4:
On = Rgb.MINT
Third = Rgb.MINT_THIRD
Half = Rgb.MINT_HALF
Off = Rgb.BLACK
class CustomSlider5:
On = Rgb.MINT
Third = Rgb.MINT_THIRD
Half = Rgb.MINT_HALF
Off = Rgb.BLACK
class CustomSlider6:
On = Rgb.BLUE
Third = Rgb.BLUE_THIRD
Half = Rgb.BLUE_HALF
Off = Rgb.BLACK
class CustomSlider7:
On = Rgb.BLUE
Third = Rgb.BLUE_THIRD
Half = Rgb.BLUE_HALF
Off = Rgb.BLACK
class ColorSteps:
Step0 = Rgb.RED
Step1 = Rgb.AMBER
Step2 = Rgb.YELLOW
Step3 = Rgb.GREEN
Step4 = Rgb.MINT
Step5 = Rgb.LIGHT_BLUE
Step6 = Rgb.BLUE
Step7 = Rgb.PINK
Step8 = Rgb.PURPLE
Step9 = Rgb.WHITE
class PrecisionSlider:
On = Rgb.LIGHT_BLUE
Off = Rgb.LIGHT_BLUE_THIRD
class ModeToggle:
Precision = Rgb.LIGHT_BLUE
Normal = Rgb.LIGHT_BLUE_THIRD
Stepless = Rgb.MINT_THIRD
class Enum:
On = Rgb.MINT
Off = Rgb.MINT_THIRD
class BigEnum:
On = Rgb.YELLOW
Off = Rgb.YELLOW_THIRD
class Toggle:
On = Rgb.RED
Off = Rgb.RED_THIRD
class StepSequencer:
class Scale:
On = Rgb.RED
Off = Rgb.RED_THIRD
class Octave:
On = Rgb.RED
Off = Rgb.RED_THIRD
class Mute:
On = Rgb.YELLOW
Off = Rgb.YELLOW_THIRD
class Mode:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
class Lock:
class ToTrack:
On = Rgb.RED
Off = Rgb.RED_THIRD
class ToClip:
On = Rgb.PURPLE
Off = Rgb.PURPLE_THIRD
class LoopSelector:
SelectedPlaying = Rgb.PURPLE
Playing = Rgb.PURPLE_HALF
Selected = Rgb.BLUE
InLoop = Rgb.BLUE_THIRD
class Quantization:
One = Rgb.GREEN
Two = Rgb.YELLOW
Three = Rgb.AMBER
Four = Rgb.RED
class QuantizationLow:
One = Rgb.GREEN_HALF
Two = Rgb.YELLOW_HALF
Three = Rgb.AMBER_HALF
Four = Rgb.RED_HALF
class NoteSelector:
class Octave:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
Selected = Rgb.GREEN
Playing = Rgb.RED
class NoteEditor:
class VelocityShifted:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
Velocity0 = Rgb.GREEN_THIRD
Velocity1 = Rgb.GREEN_HALF
Velocity2 = Rgb.GREEN
Velocity3 = Rgb.PINK_HALF
Velocity4 = Rgb.PINK
Muted = Rgb.DARK_GREY
Playing = Rgb.RED
Metronome = Rgb.BLUE
NoteMarker = Rgb.AMBER
PageMarker = Rgb.YELLOW
class StepSequencer2:
class Pitch:
On = Rgb.BLUE
Dim = Rgb.BLUE_THIRD
Off = Rgb.BLACK
class Octave:
On = Rgb.PURPLE
Dim = Rgb.PURPLE_THIRD
Off = Rgb.BLACK
class Velocity:
On = Rgb.LIGHT_BLUE
Dim = Rgb.LIGHT_BLUE_THIRD
Off = Rgb.BLACK
class Length:
On = Rgb.MINT
Dim = Rgb.MINT_THIRD
Off = Rgb.BLACK
class Random:
On = Rgb.RED
Off = Rgb.RED
class NoteEditor:
MetronomeInPage = Rgb.BLUE
MetronomeInOtherPage = Rgb.BLUE_THIRD
PlayInPage = Rgb.RED
PlayInOtherPage = Rgb.RED_THIRD
class Recording:
On = Rgb.RED
Off = Rgb.RED_THIRD
Transition = Rgb.RED_BLINK
class TrackController:
class Recording:
On = Rgb.RED
Off = Rgb.RED_THIRD
class ImplicitRecording:
On = Rgb.RED
Off = Rgb.RED_THIRD
class Play:
On = Rgb.RED
Off = Rgb.RED_THIRD
class Lock:
On = Rgb.PURPLE
Off = Rgb.PURPLE_THIRD
class Stop:
On = Rgb.GREEN_HALF_PULSE
Off = Rgb.RED_THIRD
class Mute:
On = Rgb.YELLOW
Off = Rgb.YELLOW_THIRD
class Undo:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
class Solo:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
class DrumGroup:
PadEmpty = Rgb.BLACK
PadFilled = Rgb.YELLOW
PadFilled1 = Rgb.PURPLE_THIRD
PadFilled2 = Rgb.MINT_THIRD
PadFilled3 = Rgb.PINK_THIRD
PadFilled4 = Rgb.YELLOW
PadFilled5 = Rgb.GREY
PadSelected = Rgb.LIGHT_BLUE
PadSelectedNotSoloed = Rgb.LIGHT_BLUE
PadMuted = Rgb.AMBER_THIRD
PadMutedSelected = Rgb.LIGHT_BLUE
PadSoloed = Rgb.BLUE_THIRD
PadSoloedSelected = Rgb.LIGHT_BLUE
PadInvisible = Rgb.BLACK
PadAction = Rgb.RED
class Mute:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
class Solo:
On = Rgb.BLUE
Off = Rgb.BLUE_THIRD
class Note:
FeedbackRecord = Rgb.RED
Feedback = Rgb.GREEN
class Octave:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
class Scale:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
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 Horizontal:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
class AbsoluteRoot:
On = Rgb.RED
Off = Rgb.RED_THIRD
class Mode:
On = Rgb.RED
Off = Rgb.RED_THIRD
class Key:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
CircleOfFifths = Rgb.BLUE
RelativeScale = Rgb.BLUE
class Octave:
On = Rgb.RED
Off = Rgb.RED_THIRD
class Modus:
On = Rgb.BLUE
Off = Rgb.BLUE_THIRD
class QuickScale:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
class QuickScale: # quick scale on top of instrument mode
class Modus:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
class Major: # quick scale while in major mode
class Key:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
CircleOfFifths = Rgb.RED
RelativeScale = Rgb.RED
Mode = Rgb.GREEN
class Minor:
class Key:
On = Rgb.RED
Off = Rgb.RED_THIRD
CircleOfFifths = Rgb.AMBER
RelativeScale = Rgb.AMBER
Mode = Rgb.GREEN
class Other:
class Key:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
CircleOfFifths = Rgb.RED
RelativeScale = Rgb.RED
Mode = Rgb.GREEN
class NoteRepeater:
On = Rgb.RED_BLINK
Off = Rgb.RED_THIRD
class Quant:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
Mode = Rgb.GREEN
Straight = Rgb.BLUE_THIRD
Swing = Rgb.LIGHT_BLUE
Dotted = Rgb.PURPLE_THIRD
Flam = Rgb.PURPLE
Selected = Rgb.RED
Note = Rgb.RED_HALF
Tripplet = Rgb.RED_THIRD
def make_skin():
return Skin(Colors)