-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMaschineMikroMKII.control.js
39 lines (30 loc) · 1.03 KB
/
MaschineMikroMKII.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
// Written by Michael Schmalle - teotigraphix.com
// (c) 2014
// Licensed under LGPLv3 - http://www.gnu.org/licenses/lgpl-3.0.txt
loadAPI(1);
load ("Config.js");
load ("framework/ClassLoader.js");
load ("maschine/ClassLoader.js");
Maschine.INSTANCE = Maschine.MIKROMK2;
load ("mode/ClassLoader.js");
load ("view/ClassLoader.js");
load ("Controller.js");
host.defineController(Maschine.VENDOR, Maschine.MIKROMK2_NAME, Maschine.VERSION, Maschine.MIKROMK2_UID, Maschine.AUTHOR);
host.defineMidiPorts(1, 1);
host.addDeviceNameBasedDiscoveryPair(["Maschine Mikro MK2 Controller"], ["Maschine Mikro MK2 Controller"]);
host.addDeviceNameBasedDiscoveryPair(["Maschine Mikro MK2 Virtual Input"], ["Maschine Mikro MK2 Virtual Output"]);
host.addDeviceNameBasedDiscoveryPair(["Maschine Mikro MK2 In"], ["Maschine Mikro MK2 Out"]);
var controller = null;
function init ()
{
controller = new Controller (Maschine.MIKROMK2);
println ("Initialized.");
}
function exit ()
{
controller.shutdown ();
}
function flush ()
{
controller.flush ();
}