Script exits as soon as I add host.defineMidiPorts

Post Reply New Topic
RELATED
PRODUCTS

Post

Hello, I'm just starting out out with Moss's excellent tutorials. But I'm running into trouble pretty quickly.

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!")
}
Screenshot 2021-06-22 065738.png
Screenshot 2021-06-22 065836.png
You do not have the required permissions to view the files attached to this post.

Post

You need to select a MIDI in- and output, otherwise the script will not start.

Post Reply

Return to “Controller Scripting”