forked from hdavid/Launchpad95
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SkinMK1.py
363 lines (344 loc) · 7.34 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
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 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 Track:
On = Rgb.ORANGE
Off = Rgb.ORANGE_HALF
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 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 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_THIRD
Off = Rgb.GREEN
class VolumeSlider:
On = Rgb.GREEN
Off = Rgb.BLACK
class Pan:
On = Rgb.GREEN_THIRD
Off = Rgb.GREEN
class PanSlider:
On = Rgb.AMBER
Off = Rgb.BLACK
class Sends:
On = Rgb.GREEN_THIRD
Off = Rgb.GREEN
class SendsSlider_1:
On = Rgb.ORANGE
Off = Rgb.BLACK
class SendsSlider_2:
On = Rgb.YELLOW
Off = Rgb.BLACK
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 Slider:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
class PrecisionSlider:
On = Rgb.AMBER
Off = Rgb.AMBER_THIRD
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_FULL
Two = Rgb.YELLOW_FULL
Three = Rgb.AMBER_FULL
Four = Rgb.RED_FULL
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.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.ORANGE_FULL
Velocity4 = Rgb.MANDARIN_FULL
Muted = Rgb.RED_THIRD
Playing = Rgb.RED
Metronome = Rgb.YELLOW_FULL
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 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.GREEN_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.ORANGE
Swing = Rgb.MANDARIN
Dotted = Rgb.LIME
Flam = Rgb.YELLOW
Selected = Rgb.RED
Note = Rgb.RED_HALF
Tripplet = Rgb.RED_THIRD
def make_skin():
return Skin(Colors)