-
Notifications
You must be signed in to change notification settings - Fork 82
/
SkinMK1.py
603 lines (485 loc) · 14.1 KB
/
SkinMK1.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
from _Framework.Skin import Skin
from .ColorsMK1 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.AMBER
Off = Rgb.AMBER_THIRD
class ProSession:
On = Rgb.RED
Off = Rgb.RED_HALF
class Note:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
class Drum:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
class Device:
On = Rgb.RED
Off = Rgb.RED_THIRD
class StepSequencer:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
class StepSequencer2:
On = Rgb.RED
Off = Rgb.RED_THIRD
class User:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
class User2:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
class Mixer:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
class Track:
On = Rgb.ORANGE
Off = Rgb.ORANGE_HALF
class Session:
# scene
SceneTriggered = Rgb.GREEN_BLINK
Scene = Rgb.AMBER_THIRD
NoScene = Rgb.BLACK
# clip states
ClipStarted = Rgb.GREEN
ClipStopped = Rgb.AMBER
ClipRecording = Rgb.RED
ClipEmpty = Rgb.BLACK
# trigs
ClipTriggeredPlay = Rgb.GREEN_BLINK
ClipTriggeredRecord = Rgb.RED_BLINK
RecordButton = Rgb.RED_THIRD
# stop button
StopClip = Rgb.ORANGE_HALF
StopClipTriggered = Rgb.ORANGE_BLINK_HALF
# Enabled = Rgb.GREEN
# Off = Rgb.GREEN_THIRD
class ProSession: # session zoomin
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
ClipStarted = Rgb.GREEN
ClipTriggeredPlay = Rgb.GREEN_BLINK
ClipStopped = Rgb.AMBER
ClipFoldedTrack = Rgb.AMBER
ClipUnFoldedTrack = Rgb.AMBER_HALF
class Shift:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
class Click:
On = Rgb.AMBER_BLINK
Off = Rgb.AMBER
class Undo:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
class Delete:
On = Rgb.RED_THIRD
Off = Rgb.RED_HALF
class Duplicate:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
class Double:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
class Quantize:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
class SessionRec:
On = Rgb.RED_FULL
Off = Rgb.RED_THIRD
class SessionRecMode:
On = Rgb.RED_BLINK
Off = Rgb.RED_BLINK_THIRD
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.MANDARIN_BLINK
Idle = Rgb.MANDARIN
Off = Rgb.ORANGE_HALF
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.AMBER
Idle = Rgb.AMBER_HALF
Off = Rgb.AMBER_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.ORANGE_BLINK
Idle = Rgb.ORANGE
Off = Rgb.ORANGE_HALF
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.RED
Off = Rgb.RED_THIRD
class Mute:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
class Stop:
On = Rgb.RED
Off = Rgb.RED_THIRD
class Selected:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
class Volume:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
class VolumeSlider:
On = Rgb.GREEN
Off = Rgb.BLACK
class Pan:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
class PanSlider:
On = Rgb.AMBER
Off = Rgb.BLACK
class Sends:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
class SendsSlider:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
class SendsSlider_1:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
class SendsSlider_2:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
class Sends: # not used yet on legacy launchpad
A = Rgb.RED
AAvail = Rgb.RED_THIRD
B = Rgb.RED
BAvail = Rgb.RED_THIRD
C = Rgb.RED
CAvail = Rgb.RED_THIRD
D = Rgb.RED
DAvail = Rgb.RED_THIRD
E = Rgb.RED
EAvail = Rgb.RED_THIRD
F = Rgb.RED
FAvail = Rgb.RED_THIRD
G = Rgb.RED
GAvail = Rgb.RED_THIRD
H = Rgb.RED
HAvail = Rgb.RED_THIRD
class Device: # device mode colours
class Bank:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
class Lock:
Empty = Rgb.BLACK
Set = Rgb.RED_THIRD
Locked = Rgb.RED
class DefaultSlider:
On = Rgb.AMBER
Third = Rgb.AMBER
Half = Rgb.AMBER_HALF
Off = Rgb.AMBER_THIRD
class CustomSlider0:
On = Rgb.AMBER
Third = Rgb.AMBER
Half = Rgb.AMBER_HALF
Off = Rgb.AMBER_THIRD
class CustomSlider1:
On = Rgb.AMBER
Third = Rgb.AMBER
Half = Rgb.AMBER_HALF
Off = Rgb.AMBER_THIRD
class CustomSlider2:
On = Rgb.AMBER
Third = Rgb.AMBER
Half = Rgb.AMBER_HALF
Off = Rgb.AMBER_THIRD
class CustomSlider3:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
class CustomSlider4:
On = Rgb.AMBER
Third = Rgb.AMBER
Half = Rgb.AMBER_HALF
Off = Rgb.AMBER_THIRD
class CustomSlider5:
On = Rgb.AMBER
Third = Rgb.AMBER
Half = Rgb.AMBER_HALF
Off = Rgb.AMBER_THIRD
class CustomSlider6:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
class CustomSlider7:
On = Rgb.AMBER
Third = Rgb.AMBER
Half = Rgb.AMBER_HALF
Off = Rgb.AMBER_THIRD
class ColorSteps:
Step0 = Rgb.RED
Step1 = Rgb.RED_THIRD
Step2 = Rgb.RED
Step3 = Rgb.RED_THIRD
Step4 = Rgb.RED
Step5 = Rgb.RED_THIRD
Step6 = Rgb.RED
Step7 = Rgb.RED_THIRD
Step8 = Rgb.RED
Step9 = Rgb.RED_THIRD
class PrecisionSlider:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
class ModeToggle:
Precision = Rgb.AMBER
Normal = Rgb.AMBER_THIRD
Stepless = Rgb.GREEN
class Enum:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
class BigEnum:
On = Rgb.AMBER
Off = Rgb.AMBER_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.RED
Off = Rgb.RED_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.AMBER
Off = Rgb.AMBER_THIRD
class LoopSelector:
SelectedPlaying = Rgb.RED
Playing = Rgb.RED_THIRD
Selected = Rgb.GREEN
InLoop = Rgb.AMBER_THIRD
class Quantization:
One = Rgb.GREEN_THIRD
Two = Rgb.GREEN_FULL
Three = Rgb.AMBER_FULL
Four = Rgb.RED_FULL
class QuantizationLow:
One = Rgb.GREEN_THIRD
Two = Rgb.GREEN_FULL
Three = Rgb.AMBER_HALF
Four = Rgb.RED_HALF
class NoteSelector:
class Octave:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
Selected = Rgb.AMBER
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.AMBER_HALF
Velocity4 = Rgb.AMBER
Muted = Rgb.RED_THIRD
Playing = Rgb.RED
Metronome = Rgb.RED
NoteMarker = Rgb.AMBER
PageMarker = Rgb.AMBER_THIRD
CurrentPageMarker = Rgb.RED_THIRD
CurrentPageMarkerPlay = Rgb.GREEN_THIRD
class StepSequencer2:
class Pitch:
On = Rgb.GREEN
Dim = Rgb.GREEN_THIRD
Off = Rgb.BLACK
class Octave:
On = Rgb.RED
Dim = Rgb.RED_THIRD
Off = Rgb.BLACK
class Velocity:
On = Rgb.AMBER
Dim = Rgb.AMBER_THIRD
Off = Rgb.BLACK
class Length:
On = Rgb.AMBER
Dim = Rgb.AMBER_THIRD
Off = Rgb.BLACK
class Random:
On = Rgb.RED
Off = Rgb.RED
class NoteEditor:
MetronomeInPage = Rgb.AMBER
MetronomeInOtherPage = Rgb.AMBER_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.RED
Off = Rgb.RED_THIRD
class Stop:
On = Rgb.ORANGE
Off = Rgb.ORANGE_HALF
class Mute:
On = Rgb.AMBER
Off = Rgb.AMBER_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.RED_THIRD
PadFilled1 = Rgb.RED_THIRD
PadFilled2 = Rgb.RED_THIRD
PadFilled3 = Rgb.RED_THIRD
PadFilled4 = Rgb.RED_THIRD
PadFilled5 = Rgb.RED_THIRD
PadSelected = Rgb.GREEN
PadSelectedNotSoloed = Rgb.AMBER
PadMuted = Rgb.AMBER
PadMutedSelected = Rgb.AMBER
PadSoloed = Rgb.AMBER
PadSoloedSelected = Rgb.AMBER
PadInvisible = Rgb.BLACK
PadAction = Rgb.RED
class Mute:
On = Rgb.RED
Off = Rgb.RED_THIRD
class Solo:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
class Note:
FeedbackRecord = Rgb.RED
Feedback = Rgb.AMBER
class Octave:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
class Scale:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
class Pads:
Root = Rgb.AMBER_THIRD
InScale = Rgb.GREEN_THIRD
Highlight = Rgb.GREEN
OutOfScale = Rgb.BLACK
Invalid = Rgb.BLACK
class Scale: # scale edition
class Horizontal:
On = Rgb.LIME
Off = Rgb.MANDARIN
class AbsoluteRoot:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
class Mode:
On = Rgb.RED
Off = Rgb.RED_THIRD
class Key:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
CircleOfFifths = Rgb.RED
RelativeScale = Rgb.RED
class Octave:
On = Rgb.RED
Off = Rgb.RED_THIRD
class Modus:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
class QuickScale:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
class QuickScale: # quick scale on top of instrument mode
class Modus:
On = Rgb.MANDARIN
Off = Rgb.ORANGE
class Major: # quick scale while in major mode
class Key:
On = Rgb.AMBER
Off = Rgb.AMBER_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.GREEN
Off = Rgb.GREEN_THIRD
CircleOfFifths = Rgb.RED
RelativeScale = Rgb.RED
Mode = Rgb.GREEN
class NoteRepeater:
On = Rgb.RED_BLINK
Off = Rgb.BLACK
class Quant:
On = Rgb.GREEN
Off = Rgb.GREEN_THIRD
Mode = Rgb.GREEN
Straight = Rgb.GREEN_THIRD
Swing = Rgb.GREEN_THIRD
Dotted = Rgb.GREEN_THIRD
Flam = Rgb.GREEN_THIRD
Selected = Rgb.RED
Note = Rgb.RED_HALF
Tripplet = Rgb.RED_THIRD
def make_skin():
return Skin(Colors)