forked from danthompson41/Push4Bitwig
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPush.control.js
More file actions
40 lines (33 loc) · 1.21 KB
/
Copy pathPush.control.js
File metadata and controls
40 lines (33 loc) · 1.21 KB
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
// Written by Jürgen Moßgraber - mossgrabers.de
// Michael Schmalle - teotigraphix.com
// (c) 2014-2015
// Licensed under LGPLv3 - http://www.gnu.org/licenses/lgpl-3.0.txt
function Config () {}
Config.isPush2 = false;
loadAPI (1);
load ("Config.js");
load ("framework/ClassLoader.js");
load ("push/ClassLoader.js");
load ("view/ClassLoader.js");
load ("mode/ClassLoader.js");
load ("Controller.js");
// This is the only global variable, do not use it.
var controller = null;
host.defineController ("Ableton", "Push", "7.11", "D69AFBF0-B71E-11E3-A5E2-0800200C9A66", "Jürgen Moßgraber & Michael Schmalle");
host.defineMidiPorts (1, 1);
host.platformIsWindows () && host.addDeviceNameBasedDiscoveryPair (["MIDIIN2 (Ableton Push)"], ["MIDIOUT2 (Ableton Push)"]);
host.platformIsLinux () && host.addDeviceNameBasedDiscoveryPair (["Ableton Push MIDI 2"], ["Ableton Push MIDI 2"]);
host.platformIsMac () && host.addDeviceNameBasedDiscoveryPair (["Ableton Push User Port"], ["Ableton Push User Port"]);
function init ()
{
controller = new Controller ();
println ("Initialized.");
}
function exit ()
{
controller.shutdown ();
}
function flush ()
{
controller.flush ();
}