As soon as I add host.defineMidiPorts() to my script, the script calls exit() and I am unable to restart it in the prefs. The "on" button just stays greyed out.
Code: Select all
loadAPI(14);
host.setShouldFailOnDeprecatedUse(true);
host.defineController("dan", "Axiom 61", "0.1", "5f7cd56f-8d57-4403-9ae3-bac266304b8d", "dan_default");
host.defineMidiPorts(1, 1);
function init() {
println("Step Enter initialized! Start now.");
}
function flush() {
println("Flush called.");
}
function sayHello() {
println("Hello!");
}
function exit() {
println("Exited!")
}