-
Notifications
You must be signed in to change notification settings - Fork 11
/
SkinDefault.py
138 lines (122 loc) · 3.58 KB
/
SkinDefault.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
#Embedded file name: /Users/versonator/Jenkins/live/Binary/Core_Release_64_static/midi-remote-scripts/_APC/SkinDefault.py
from _Framework.Skin import Skin
from _Framework.ButtonElement import Color
from Push.Colors import Rgb, Pulse, Blink
GREEN = Color(1)
GREEN_BLINK = Color(2)
RED = Color(3)
RED_BLINK = Color(4)
AMBER = Color(5)
class Defaults:
class DefaultButton:
On = Color(127)
Off = Color(0)
class BiLedColors:
class DefaultButton:
On = Color(127)
Off = Color(0)
class Session:
ClipStopped = AMBER
ClipStarted = GREEN
ClipRecording = RED
ClipTriggeredPlay = GREEN_BLINK
ClipTriggeredRecord = RED_BLINK
ClipEmpty = Color(0)
Scene = Color(0)
SceneTriggered = GREEN_BLINK
NoScene = Color(0)
StopClip = Color(0)
StopClipTriggered = GREEN_BLINK
RecordButton = Color(0)
class Zooming:
Selected = AMBER
Stopped = RED
Playing = GREEN
Empty = Color(0)
class RgbColors:
class DrumGroup:
PadSelected = Rgb.OCEAN
PadSelectedNotSoloed = Rgb.OCEAN
PadFilled = Rgb.YELLOW
PadEmpty = Rgb.YELLOW.shade(2)
PadMuted = Rgb.AMBER.shade(1)
PadMutedSelected = Rgb.OCEAN.shade(1)
PadSoloed = Rgb.BLUE
PadSoloedSelected = Rgb.OCEAN.highlight()
PadInvisible = Rgb.BLACK
PadAction = Rgb.RED
class LoopSelector:
Playhead = Rgb.GREEN
PlayheadRecord = Rgb.RED
SelectedPage = Rgb.MAGENTA
InsideLoopStartBar = Rgb.OCEAN
InsideLoop = Rgb.CYAN
OutsideLoop = Rgb.WHITE
class DefaultButton:
On = Color(127)
Off = Color(0)
class NoteEditor:
class Step:
Empty = Rgb.WHITE
Low = Rgb.SKY.highlight()
Medium = Rgb.SKY
High = Rgb.OCEAN
Full = Rgb.BLUE
Muted = Rgb.AMBER.shade(2)
class StepEditing:
Low = Rgb.YELLOW.highlight()
High = Rgb.YELLOW
Full = Rgb.AMBER
Muted = Rgb.WHITE
StepSelected = Rgb.WHITE
StepEmpty = Rgb.BLACK
StepEmptyBase = Rgb.OCEAN.shade(2)
StepEmptyScale = Rgb.DARK_GREY
StepDisabled = Rgb.RED.shade(2)
Playhead = Rgb.GREEN
PlayheadRecord = Rgb.RED
QuantizationSelected = Rgb.GREEN
QuantizationUnselected = Rgb.YELLOW
NoteBase = Rgb.OCEAN.shade(2)
NoteScale = Rgb.DARK_GREY
NoteNotScale = Rgb.BLACK
NoteInvalid = Rgb.RED.shade(2)
class Melodic:
Playhead = Rgb.GREEN.shade(1)
PlayheadRecord = Rgb.RED.shade(1)
class Session:
Scene = Rgb.GREEN
SceneTriggered = Blink(Rgb.GREEN, Rgb.BLACK, 24)
NoScene = Rgb.BLACK
ClipStopped = Rgb.AMBER
ClipStarted = Pulse(Rgb.GREEN.shade(1), Rgb.GREEN, 48)
ClipRecording = Pulse(Rgb.BLACK, Rgb.RED, 48)
ClipTriggeredPlay = Blink(Rgb.GREEN, Rgb.BLACK, 24)
ClipTriggeredRecord = Blink(Rgb.RED, Rgb.BLACK, 24)
ClipEmpty = Rgb.BLACK
RecordButton = Rgb.BLACK
class Zooming:
Selected = Rgb.AMBER
Stopped = Rgb.RED
Playing = Rgb.GREEN
Empty = Rgb.BLACK
class StopButtons:
class Session:
StopClip = Color(1)
StopClipTriggered = Color(2)
class CrossfadeButtons:
class Mixer:
class Crossfade:
Off = Color(0)
A = Color(1)
B = Color(2)
def make_default_skin():
return Skin(Defaults)
def make_biled_skin():
return Skin(BiLedColors)
def make_rgb_skin():
return Skin(RgbColors)
def make_stop_button_skin():
return Skin(StopButtons)
def make_crossfade_button_skin():
return Skin(CrossfadeButtons)