-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBCFR2000.control.js
80 lines (65 loc) · 1.4 KB
/
BCFR2000.control.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
loadAPI(1);
/**
* Copyright 2014-2015 Alan Drees
*
* Purpose:
* BCFR2000 controller script entry point
*
* Dependencies:
* bcfr2000_controller_object.js
*
*/
var console = {};
console.debug = false;
console.log = function(string)
{
if(console.debug === true)
{
println(string);
}
};
load('bcfr2000_options.js');
load('bcfr2000_controller_object.js');
load('bcf2000_object.js');
load('bcr2000_object.js');
load('bc_controls.js');
host.defineController("Stealthascope", "BCFR2000", "0.0", "CA3EEFAF-636D-454F-81A8-E67EAF1B01AE", "Alan Drees");
host.defineMidiPorts(1, 1);
for(var pair_index in BCFR2000.options.discoveryname)
{
var pair_array = BCFR2000.options.discoveryname[pair_index];
host.addDeviceNameBasedDiscoveryPair([pair_array[0]],[pair_array[1]]);
}
var controllers = new Array();
var icc_network = new Array();
//icc_network.push(ICC.create_new_icc_network('bcfr2000'));
controllers[0] = new BCFR2000.BCFRController(BCFR2000.options, 0);
/**\fn init
*
* init function entry point wrapping the controller components
*
* @param None
*
* @returns None
*/
function init()
{
for(var controller in controllers)
{
controllers[controller].init();
}
}
function exit()
{
for(var controller in controllers)
{
controllers[controller].exit();
}
}
function flush()
{
for(var controller in controllers)
{
controllers[controller].flush();
}
}