-
Notifications
You must be signed in to change notification settings - Fork 4
/
TouchView.js
55 lines (48 loc) · 997 Bytes
/
TouchView.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
load("MixerSliderControl.js");
load("SliderModeHandler.js");
load("SliderView.js");
load("DeviceSliderControl.js");
var _hexstr = "0123456789abcdef";
var ControlModes = {
VOLUME: 0,
PAN: 1,
AUX: 2,
DEVICE: 3,
MACRO: 4,
MIDI_CC: 5
};
var BarModes = {
DUAL: "03",
DOT: "01",
PAN: "02",
SINGLE: "00"
};
function toHex(value) {
return _hexstr[Math.floor(value/16)] + _hexstr[value%16];
}
var TrackValue = function() {
this.exists = false;
this.volume = 0;
this.pan = 0;
this.sends = [];
for(var i=0;i<8;i++) {
this.sends.push(0);
}
this.color = "00";
};
function SliderControl() {
this.isMixer = function() {
return true;
};
this.values = function() {
return;
};
this.setDisplay = function() {
};
this.hasSends = function() {
return false;
};
this.getColor = function() {
return;
};
}