forked from danthompson41/Push4Bitwig
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPush2.control.js
More file actions
39 lines (32 loc) · 1.13 KB
/
Copy pathPush2.control.js
File metadata and controls
39 lines (32 loc) · 1.13 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
// Written by Jürgen Moßgraber - mossgrabers.de
// (c) 2014-2015
// Licensed under LGPLv3 - http://www.gnu.org/licenses/lgpl-3.0.txt
function Config () {}
Config.isPush2 = true;
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 2", "7.11", "B7621FC0-9223-11E5-A837-0800200C9A66", "Jürgen Moßgraber");
host.defineMidiPorts (1, 1);
host.platformIsWindows () && host.addDeviceNameBasedDiscoveryPair (["Ableton Push 2"], ["Ableton Push 2"]);
host.platformIsLinux () && host.addDeviceNameBasedDiscoveryPair (["Ableton Push 2 MIDI 1"], ["Ableton Push 2 MIDI 1"]);
host.platformIsMac () && host.addDeviceNameBasedDiscoveryPair (["Ableton Push 2 Live Port"], ["Ableton Push 2 Live Port"]);
function init ()
{
controller = new Controller ();
println ("Initialized.");
}
function exit ()
{
controller.shutdown ();
}
function flush ()
{
controller.flush ();
}