-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontrolMap.js
102 lines (100 loc) · 2.89 KB
/
controlMap.js
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
const PROG_CHANGE_CHANNEL = 14;
const FX_CONTROL_CHANNEL = 9;
export const msgMap = {
play: {
method: 'sendStart',
params: '',
device: 'outputDN',
message: 'Someone pressed play'
},
stop: {
method: 'sendStop',
params: '',
device: 'outputDN',
message: 'Someone pressed stop'
},
prog1: {
method: 'sendProgramChange',
params: [0, PROG_CHANGE_CHANNEL],
device: 'outputDN',
message: 'Someone changed to pattern 1'
},
prog2: {
method: 'sendProgramChange',
params: [1, PROG_CHANGE_CHANNEL],
device: 'outputDN',
message: 'Someone changed to pattern 2'
},
prog3: {
method: 'sendProgramChange',
params: [2, PROG_CHANGE_CHANNEL],
device: 'outputDN',
message: 'Someone changed to pattern 3'
},
prog4: {
method: 'sendProgramChange',
params: [3, PROG_CHANGE_CHANNEL],
device: 'outputDN',
message: 'Someone changed to pattern 4'
},
muteDN: {
method: 'sendControlChange',
params: (val) => [94, 127, val],
device: 'outputDN',
message: 'Someone muted a digitone track'
},
unmuteDN: {
method: 'sendControlChange',
params: (val) => [94, 0, val],
device: 'outputDN',
message: 'Someone unmuted a digitone track'
},
delayVol: {
method: 'sendControlChange',
params: (val) => [20, val, FX_CONTROL_CHANNEL],
device: 'outputDN',
message: 'Someoned changed the delay volume'
},
delayFbk: {
method: 'sendControlChange',
params: (val) => [18, val, FX_CONTROL_CHANNEL],
device: 'outputDN',
message: 'Someoned changed the delay feedback'
},
delayTime: {
method: 'sendControlChange',
params: (val) => [15, val, FX_CONTROL_CHANNEL],
device: 'outputDN',
message: 'Someone changed the delay time'
},
verbVol: {
method: 'sendControlChange',
params: (val) => [23, val, FX_CONTROL_CHANNEL],
device: 'outputDN',
message: 'Someone changed the reverb volume'
},
verbDecay: {
method: 'sendControlChange',
params: (val) => [74, val, FX_CONTROL_CHANNEL],
device: 'outputDN',
message: 'Someone changed the reverb decay'
},
verbPredelay: {
method: 'sendControlChange',
params: (val) => [21, val, FX_CONTROL_CHANNEL],
device: 'outputDN',
message: 'Someone changed the reverb predelay'
},
muteDT: {
method: 'sendControlChange',
params: (val) => [94, 127, val],
device: 'outputDT',
message: 'Someone muted a digitakt track'
},
unmuteDT: {
method: 'sendControlChange',
params: (val) => [94, 0, val],
device: 'outputDT',
message: 'Someone unmuted a digitakt track'
},
}