Skip to content

Commit ca31794

Browse files
committed
Bugfix
1 parent 360a715 commit ca31794

9 files changed

+498
-471
lines changed

MIDI_Map.py

+156-156
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# Combination Mode offsets
55
# ------------------------
66

7-
TRACK_OFFSET = -1 # Offset from the left of linked session origin; set to -1 for auto-joining of multiple instances
8-
SCENE_OFFSET = 0 # Offset from the top of linked session origin (no auto-join)
7+
TRACK_OFFSET = -1 #offset from the left of linked session origin; set to -1 for auto-joining of multiple instances
8+
SCENE_OFFSET = 0 #offset from the top of linked session origin (no auto-join)
99

1010
# Buttons / Pads
1111
# -------------
@@ -17,201 +17,201 @@
1717
#When using CCs for buttons/pads, set BUTTONCHANNEL and SLIDERCHANNEL to different values.
1818

1919
# General
20-
PLAY = 85 # Global play
21-
STOP = 60 # Global stop
22-
REC = 86 # Global record
23-
TAPTEMPO = 3 # Tap tempo
24-
NUDGEUP = -1 # Tempo Nudge Up
25-
NUDGEDOWN = -1 # Tempo Nudge Down
26-
UNDO = -1 # Undo
27-
REDO = -1 # Redo
28-
LOOP = -1 # Loop on/off
29-
PUNCHIN = -1 # Punch in
30-
PUNCHOUT = -1 # Punch out
31-
OVERDUB = -1 # Overdub on/off
32-
METRONOME = 9 # Metronome on/off
33-
RECQUANT = 116 # Record quantization on/off
34-
DETAILVIEW = -1 # Detail view switch
35-
CLIPTRACKVIEW = -1 # Clip/Track view switch
20+
PLAY = 85 #Global play
21+
STOP = 60 #Global stop
22+
REC = 86 #Global record
23+
TAPTEMPO = 3 #Tap tempo
24+
NUDGEUP = -1 #Tempo Nudge Up
25+
NUDGEDOWN = -1 #Tempo Nudge Down
26+
UNDO = -1 #Undo
27+
REDO = -1 #Redo
28+
LOOP = -1 #Loop on/off
29+
PUNCHIN = -1 #Punch in
30+
PUNCHOUT = -1 #Punch out
31+
OVERDUB = -1 #Overdub on/off
32+
METRONOME = 9 #Metronome on/off
33+
RECQUANT = 116 #Record quantization on/off
34+
DETAILVIEW = -1 #Detail view switch
35+
CLIPTRACKVIEW = -1 #Clip/Track view switch
3636

3737
# Device Control
38-
DEVICELOCK = 52 # Device Lock (lock "blue hand")
39-
DEVICEONOFF = -1 # Device on/off
40-
DEVICENAVLEFT = -1 # Device nav left
41-
DEVICENAVRIGHT = -1 # Device nav right
42-
DEVICEBANKNAVLEFT = -1 # Device bank nav left
43-
DEVICEBANKNAVRIGHT = -1 # Device bank nav right
44-
DEVICEBANK = (-1, # Bank 1 #All 8 banks must be assigned to positive values in order for bank selection to work
45-
-1, # Bank 2
46-
-1, # Bank 3
47-
-1, # Bank 4
48-
-1, # Bank 5
49-
-1, # Bank 6
50-
-1, # Bank 7
51-
-1, # Bank 8
38+
DEVICELOCK = 52 #Device Lock (lock "blue hand")
39+
DEVICEONOFF = -1#Device on/off
40+
DEVICENAVLEFT = -1 #Device nav left
41+
DEVICENAVRIGHT = -1 #Device nav right
42+
DEVICEBANKNAVLEFT = -1#Device bank nav left
43+
DEVICEBANKNAVRIGHT = -1 #Device bank nav right
44+
DEVICEBANK = (-1, #Bank 1 #All 8 banks must be assigned to positive values in order for bank selection to work
45+
-1, #Bank 2
46+
-1, #Bank 3
47+
-1, #Bank 4
48+
-1, #Bank 5
49+
-1, #Bank 6
50+
-1, #Bank 7
51+
-1, #Bank 8
5252
)
5353

5454
# Arrangement View Controls
55-
SEEKFWD = -1 # Seek forward
56-
SEEKRWD = -1 # Seek rewind
55+
SEEKFWD = -1 #Seek forward
56+
SEEKRWD = -1 #Seek rewind
5757

5858
# Session Navigation (aka "red box")
59-
SESSIONLEFT = 44 # Session left
60-
SESSIONRIGHT = 45 # Session right
61-
SESSIONUP = 46 # Session up
62-
SESSIONDOWN = 47 # Session down
63-
ZOOMUP = -1 # Session Zoom up
64-
ZOOMDOWN = -1 # Session Zoom down
65-
ZOOMLEFT = -1 # Session Zoom left
66-
ZOOMRIGHT = -1 # Session Zoom right
59+
SESSIONLEFT = 44 #Session left
60+
SESSIONRIGHT = 45#Session right
61+
SESSIONUP = 46 #Session up
62+
SESSIONDOWN = 47 #Session down
63+
ZOOMUP = -1 #Session Zoom up
64+
ZOOMDOWN = -1 #Session Zoom down
65+
ZOOMLEFT = -1 #Session Zoom left
66+
ZOOMRIGHT = -1 #Session Zoom right
6767

6868
# Track Navigation
69-
TRACKLEFT = -1 # Track left
70-
TRACKRIGHT = -1 # Track right
69+
TRACKLEFT = -1 #Track left
70+
TRACKRIGHT = -1 #Track right
7171

7272
# Scene Navigation
73-
SCENEUP = -1 # Scene down
74-
SCENEDN = -1 # Scene up
73+
SCENEUP = -1 #Scene down
74+
SCENEDN = -1 #Scene up
7575

7676
# Scene Launch
77-
SELSCENELAUNCH = -1 # Selected scene launch
78-
SCENELAUNCH = (43, # Scene 1 Launch
79-
42, # Scene 2
80-
41, # Scene 3
81-
40, # Scene 4
77+
SELSCENELAUNCH = -1 #Selected scene launch
78+
SCENELAUNCH = (43, #Scene 1 Launch
79+
42, #Scene 2
80+
41, #Scene 3
81+
40, #Scene 4
8282
)
8383

8484
# Clip Launch / Stop
85-
SELCLIPLAUNCH = -1 # Selected clip launch
86-
STOPALLCLIPS = 29 # Stop all clips
85+
SELCLIPLAUNCH = -1 #Selected clip launch
86+
STOPALLCLIPS = 29 #Stop all clips
8787

8888
# 8x8 Matrix note assignments
8989
# Track no.: 1 2 3 4 5 6 7 8
90-
CLIPNOTEMAP = ((92, 93, 94, 95, 96, 97, 98, 99), # Row 1
91-
(84, 85, 86, 87, 88, 89, 90, 91), # Row 2
92-
(76, 77, 78, 79, 80, 81, 82, 83), # Row 3
93-
(68, 69, 70, 71, 72, 73, 74, 75), # Row 4
90+
CLIPNOTEMAP = ((92, 93, 94, 95, 96, 97, 98, 99), #Row 1
91+
(84, 85, 86, 87, 88, 89, 90, 91), #Row 2
92+
(76, 77, 78, 79, 80, 81, 82, 83), #Row 3
93+
(68, 69, 70, 71, 72, 73, 74, 75), #Row 4
9494
)
9595

9696
# Track Control
97-
MASTERSEL = 28 # Master track select
98-
TRACKSTOP = (-1, # Track 1 Clip Stop
99-
-1, # Track 2
100-
-1, # Track 3
101-
-1, # Track 4
102-
-1, # Track 5
103-
-1, # Track 6
104-
-1, # Track 7
105-
-1, # Track 8
97+
MASTERSEL = 28 #Master track select
98+
TRACKSTOP = (-1, #Track 1 Clip Stop
99+
-1, #Track 2
100+
-1, #Track 3
101+
-1, #Track 4
102+
-1, #Track 5
103+
-1, #Track 6
104+
-1, #Track 7
105+
-1, #Track 8
106106
)
107-
TRACKSEL = (20, # Track 1 Select
108-
21, # Track 2
109-
22, # Track 3
110-
23, # Track 4
111-
24, # Track 5
112-
25, # Track 6
113-
26, # Track 7
114-
27, # Track 8
107+
TRACKSEL = (20, #Track 1 Select
108+
21, #Track 2
109+
22, #Track 3
110+
23, #Track 4
111+
24, #Track 5
112+
25, #Track 6
113+
26, #Track 7
114+
27, #Track 8
115115
)
116-
TRACKMUTE = (-1, # Track 1 On/Off
117-
-1, # Track 2
118-
-1, # Track 3
119-
-1, # Track 4
120-
-1, # Track 5
121-
-1, # Track 6
122-
-1, # Track 7
123-
-1, # Track 8
116+
TRACKMUTE = (-1, #Track 1 On/Off
117+
-1, #Track 2
118+
-1, #Track 3
119+
-1, #Track 4
120+
-1, #Track 5
121+
-1, #Track 6
122+
-1, #Track 7
123+
-1, #Track 8
124124
)
125-
TRACKSOLO = (-1, # Track 1 Solo
126-
-1, # Track 2
127-
-1, # Track 3
128-
-1, # Track 4
129-
-1, # Track 5
130-
-1, # Track 6
131-
-1, # Track 7
132-
-1, # Track 8
125+
TRACKSOLO = (-1, #Track 1 Solo
126+
-1, #Track 2
127+
-1, #Track 3
128+
-1, #Track 4
129+
-1, #Track 5
130+
-1, #Track 6
131+
-1, #Track 7
132+
-1, #Track 8
133133
)
134-
TRACKREC = (102, # Track 1 Record
135-
103, # Track 2
136-
104, # Track 3
137-
105, # Track 4
138-
106, # Track 5
139-
107, # Track 6
140-
108, # Track 7
141-
109, # Track 8
134+
TRACKREC = (102, #Track 1 Record
135+
103, #Track 2
136+
104, #Track 3
137+
105, #Track 4
138+
106, #Track 5
139+
107, #Track 6
140+
108, #Track 7
141+
109, #Track 8
142142
)
143143

144144

145145
# Pad Translations for Drum Rack
146146

147-
PADCHANNEL = 1 # MIDI channel for Drum Rack notes
147+
PADCHANNEL = 1 # MIDI channel for Drum Rack notes
148148
DRUM_PADS = (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)
149149

150150
# Sliders / Knobs
151151
# ---------------
152152
# Valid CC assignments are 0 to 127, or -1 for NONE
153153
# Duplicate assignments will be ignored
154154

155-
SLIDERCHANNEL = 2 # Channel assignment for all mapped CCs; valid range is 0 to 15
156-
TEMPO_TOP = 180.0 # Upper limit of tempo control in BPM (max is 999)
157-
TEMPO_BOTTOM = 100.0 # Lower limit of tempo control in BPM (min is 0)
158-
159-
TEMPOCONTROL = 14 # Tempo control CC assignment; control range is set above
160-
MASTERVOLUME = 79 # Master track volume
161-
CUELEVEL = -1 # Cue level control
162-
CROSSFADER = -1 # Crossfader control
163-
164-
TRACKVOL = (-1, # Track 1 Volume
165-
-1, # Track 2
166-
-1, # Track 3
167-
-1, # Track 4
168-
-1, # Track 5
169-
-1, # Track 6
170-
-1, # Track 7
171-
-1, # Track 8
155+
SLIDERCHANNEL = 2 #Channel assignment for all mapped CCs; valid range is 0 to 15
156+
TEMPO_TOP = 180.0 # Upper limit of tempo control in BPM (max is 999)
157+
TEMPO_BOTTOM = 100.0 # Lower limit of tempo control in BPM (min is 0)
158+
159+
TEMPOCONTROL = 14 #Tempo control CC assignment; control range is set above
160+
MASTERVOLUME = 79 #Master track volume
161+
CUELEVEL = -1 #Cue level control
162+
CROSSFADER = -1 #Crossfader control
163+
164+
TRACKVOL = (-1, #Track 1 Volume
165+
-1, #Track 2
166+
-1, #Track 3
167+
-1, #Track 4
168+
-1, #Track 5
169+
-1, #Track 6
170+
-1, #Track 7
171+
-1, #Track 8
172172
)
173-
TRACKPAN = (-1, # Track 1 Pan
174-
-1, # Track 2
175-
-1, # Track 3
176-
-1, # Track 4
177-
-1, # Track 5
178-
-1, # Track 6
179-
-1, # Track 7
180-
-1, # Track 8
173+
TRACKPAN = (-1, #Track 1 Pan
174+
-1, #Track 2
175+
-1, #Track 3
176+
-1, #Track 4
177+
-1, #Track 5
178+
-1, #Track 6
179+
-1, #Track 7
180+
-1, #Track 8
181181
)
182-
TRACKSENDA = (-1, # Track 1 Send A
183-
-1, # Track 2
184-
-1, # Track 3
185-
-1, # Track 4
186-
-1, # Track 5
187-
-1, # Track 6
188-
-1, # Track 7
189-
-1, # Track 8
182+
TRACKSENDA = (-1, #Track 1 Send A
183+
-1, #Track 2
184+
-1, #Track 3
185+
-1, #Track 4
186+
-1, #Track 5
187+
-1, #Track 6
188+
-1, #Track 7
189+
-1, #Track 8
190190
)
191-
TRACKSENDB = (-1, # Track 1 Send B
192-
-1, # Track 2
193-
-1, # Track 3
194-
-1, # Track 4
195-
-1, # Track 5
196-
-1, # Track 6
197-
-1, # Track 7
198-
-1, # Track 8
191+
TRACKSENDB = (-1, #Track 1 Send B
192+
-1, #Track 2
193+
-1, #Track 3
194+
-1, #Track 4
195+
-1, #Track 5
196+
-1, #Track 6
197+
-1, #Track 7
198+
-1, #Track 8
199199
)
200-
TRACKSENDC = (-1, # Track 1 Send C
201-
-1, # Track 2
202-
-1, # Track 3
203-
-1, # Track 4
204-
-1, # Track 5
205-
-1, # Track 6
206-
-1, # Track 7
207-
-1, # Track 8
200+
TRACKSENDC = (-1, #Track 1 Send C
201+
-1, #Track 2
202+
-1, #Track 3
203+
-1, #Track 4
204+
-1, #Track 5
205+
-1, #Track 6
206+
-1, #Track 7
207+
-1, #Track 8
208208
)
209-
PARAMCONTROL = (71, # Param 1 #All 8 params must be assigned to positive values in order for param control to work
210-
72, # Param 2
211-
73, # Param 3
212-
74, # Param 4
213-
75, # Param 5
214-
76, # Param 6
215-
77, # Param 7
216-
78, # Param 8
209+
PARAMCONTROL = (71, #Param 1 #All 8 params must be assigned to positive values in order for param control to work
210+
72, #Param 2
211+
73, #Param 3
212+
74, #Param 4
213+
75, #Param 5
214+
76, #Param 6
215+
77, #Param 7
216+
78, #Param 8
217217
)

0 commit comments

Comments
 (0)