-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cntrlr_Map.py
135 lines (109 loc) · 5.11 KB
/
Cntrlr_Map.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
#!/usr/bin/env python
# encoding: utf-8
"""
Cntrlr_Map.py
Created by amounra on 2010-10-05.
Copyright (c) 2010 __aumhaa__. All rights reserved.
http://www.aumhaa.com
This file allows the reassignment of the controls from their default arrangement. The order is from left to right;
Buttons are Note #'s and Faders/Rotaries are Controller #'s
"""
CHANNEL = 0 #main channel (0 - 15)
CNTRLR_BUTTONS = [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] #there are 16x2 of these
CNTRLR_GRID = [0, 4, 8, 12, 1, 5, 9, 13, 2, 6, 10, 14, 3, 7, 11, 15] #there are 4x4 of these
CNTRLR_FADERS = [4, 8, 12, 16, 20, 24, 28, 32] #there are 8 of these
CNTRLR_KNOBS_LEFT = [1, 5, 9, 13, 2, 6, 10, 14, 3, 7, 11, 15] #there are 12 of these
CNTRLR_KNOBS_RIGHT = [17, 21, 25, 29, 18, 22, 26, 30, 19, 23, 27, 31] #there are 12 of these
CNTRLR_DIALS = [48, 51, 54, 57, 49, 52, 55, 58, 50, 53, 56, 59] #there are 12 of these
CNTRLR_DIAL_BUTTONS = [48, 51, 54, 57, 49, 52, 55, 58, 50, 53, 56, 59] #there are 12 of these
BACKLIGHT_TYPE = ['static', 'pulse', 'up', 'down'] #this assigns the backlight mode for left_shift_modes 1-4. If 'static', the value below will be used
BACKLIGHT_VALUE = [127, 96, 64, 32] #this assigns the led intensity for the backlight if it is in 'static' mode for left_shift_modes 1-4
PAD_TRANSLATION = ((0, 0, 0, 9), (0, 1, 1, 9), (0, 2, 2, 9), (0, 3, 3, 9), #this is used by DrumRacks to translate input to one of the visible grid squares for triggering
(1, 0, 4, 9), (1, 1, 5, 9), (1, 2, 6, 9), (1, 3, 7, 9), #the format is (x position, y position, note-number, channel)
(2, 0, 8, 9), (2, 1, 9, 9), (2, 2, 10, 9), (2, 3, 11, 9),
(3, 0, 12, 9), (3, 1, 13, 9), (3, 2, 14, 9), (3, 3, 15, 9))
OHM_MAP_ID = [[0, 1, 2, 3, 4, 5, 6, 7], #these are the notenumbers for the grid when in Livid_Mode
[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]]
OHM_MAP_CHANNEL = [[15, 15, 15, 15, 15, 15, 15, 15], #these are the channels for each grid square in Livid_Mode
[15, 15, 15, 15, 15, 15, 15, 15],
[15, 15, 15, 15, 15, 15, 15, 15],
[15, 15, 15, 15, 15, 15, 15, 15],
[15, 15, 15, 15, 15, 15, 15, 15],
[15, 15, 15, 15, 15, 15, 15, 15],
[15, 15, 15, 15, 15, 15, 15, 15],
[15, 15, 15, 15, 15, 15, 15, 15]]
OHM_MAP_VALUE = [[4, 8, 5, 2, 0, 3, 0, 6], #these are the values that are lit up in Livid_Mode
[8, 4, 2, 0, 2, 0, 3, 0],
[5, 2, 0, 3, 0, 2, 0, 3],
[2, 0, 3, 0, 1, 0, 2, 0],
[0, 2, 0, 1, 0, 3, 0, 2],
[3, 0, 2, 0, 3, 0, 2, 5],
[0, 3, 0, 2, 0, 2, 4, 8],
[6, 0, 3, 0, 2, 5, 8, 4]]
FOLLOW = True #this sets whether or not the last selected device on a track is selected for editing when you select a new track
# These are the values for the track offset used for RIGHT_MIXER_MODEs 1-3:
RIGHT_MODE_OFFSETS = [4, 8, 12]
# The default assignment of colors within the OhmRGB is:
# Note 2 = white
# Note 4 = cyan
# Note 8 = magenta
# Note 16 = red
# Note 32 = blue
# Note 64 = yellow
# Note 127 = green
# Because the colors are reassignable, and the default colors have changed from the initial prototype,
# MonOhm script utilizes a color map to assign colors to the buttons. This color map can be changed
# here in the script. The color ordering is from 1 to 7.
COLOR_MAP = [2, 64, 4, 8, 16, 127, 32]
# In addition, there are two further color maps that are used depending on whether the RGB or Monochrome
# Ohm64 is detected. The first number is the color used by the RGB (from the ordering in the COLOR_MAP array),
# the second the Monochrome. Obviously the Monochrome doesn't use the colors.
# However, the flashing status of a color is derived at by modulus. Thus 1-7 are the raw colors, 8-14 are a fast
# flashing color, 15-21 flash a little slower, etc. You can assign your own color maps here:
### the first number is Livid(OhmModes) standard, the second is Monomdular standard, the third is Monochrome
MUTE = [2, 2, 127]
SOLO = [3, 9, 127]
ARM = [5, 5, 8]
SEND_RESET = [7, 7, 7]
STOP_CLIPS = [127, 1, 1]
STOP_CLIPS_OFF = [127, 127, 127]
SELECT = [127, 127, 127]
SCENE_LAUNCH = [7, 3, 17]
USER1_COLOR = [4, 4, 29]
USER2_COLOR = [5, 5, 29]
USER3_COLOR = [6, 6, 29]
CROSSFADE_TOGGLE = [4, 4, 127]
TRACK_STOP = [127, 127, 127]
DEVICE_SELECT = [1, 1, 8]
BANK_BUTTONS = [1, 1, 1]
STOP_ALL = [127, 127, 15]
SESSION_NAV = [2, 2, 32]
SESSION_NAV_OFF = [3, 3, 33]
OVERDUB = [4, 4, 127]
LOOP = [3, 3, 127]
STOP = [127, 127, 127]
STOP_OFF = [127, 127, 127]
RECORD = [5, 5, 15]
RECORD_ON = [11, 11, 15]
PLAY = [6, 6, 127]
PLAY_ON = [18, 18, 127]
DEVICE_BANK = [127, 127, 127]
DEVICE_NAV = [1, 1, 127]
DEVICE_ON = [127, 127, 127]
DEVICE_LOCK = [4, 4, 127]
CLIP_RECORDING = [5, 11, 8]
CLIP_STARTED = [6, 6, 32]
CLIP_STOP = [1, 127, 127]
CLIP_TRG_REC = [11, 4, 8]
CLIP_TRG_PLAY = [12, 2, 15]
ZOOM_STOPPED = [1, 127, 127]
ZOOM_PLAYING = [6, 6, 15]
ZOOM_SELECTED = [8, 1, 8]
STOP_CLIP = [127, 127, 2]
## a http://www.aumhaa.com