Scripting help - issues with SendOSC and PA1U

Describe your issue here:

We’re using a DirectOut Prodigy for audio and a PA1U for MIDI redundancy, and I’m working on building a Project Script to link the PA1U scene to the Prodigy state (Main sets PA1U to A, and Backup sets PA1U to B).

I got the part of the script working that monitors the scene on the Prodigy, but I was unable to get the sendOsc commands to work to switch the scene on the PlayAudio1U. Can you help me by taking a look at the script and letting me know if I have any errors? Thank you in advance for the help!

onOscChange("/audioInterfaces/prodigy/prodigy-mp-ac87f9.local./NET 1 A/active", () => {
  let prodigyStatus = osc(
    "audioInterfaces/prodigy/prodigy-mp-ac87f9.local./NET 1 A/active",
  );
  if (prodigyStatus == "Main") {
    sendOsc("/audioInterfaces/playaudio/setscene/00 00 00 20 21/1");
  } else if (prodigyStatus == "Backup") {
    sendOsc("/audioInterfaces/playaudio/setscene/00 00 00 20 21/2");
  }
},
);

Please fill out these values to make it easier to troubleshoot:

  • OS and Version: macOS Sequoia 15.7.3
  • Version of AbleSet: 3.0.5
  • Version of Ableton Live: 12.3.1

I was able to sort out the syntax errors! The following code behaved the way I hoped. Wondering why the serial number in Auracle didn’t match the final here but glad to have it sorted.

nOscChange(
  "/audioInterfaces/prodigy/prodigy-mp-ac87f9.local./NET 1 A/active",
  () => {
    let prodigyStatus = osc(
      "/audioInterfaces/prodigy/prodigy-mp-ac87f9.local./NET 1 A/active",
    );
    if (prodigyStatus == "Main") {
      log(prodigyStatus);
      sendOsc("/audioInterfaces/playaudio/setScene", "00 00 00 20 21", 1);
    } else if (prodigyStatus == "Backup") {
      log(prodigyStatus);
      sendOsc("/audioInterfaces/playaudio/setScene", "00 00 00 20 21", 2);
    }
  },
);
2 Likes