Beta version 4.4

A quick update that includes OSC support for midiScript.

Version 4.3.0.142 => use the later version below.

Please note: There is a breaking change to the osc.Connect() call in this version. The arguments are reordered to keep the target definitions adjacent. You need to swap the targetPort and inPort arguments:

osc.Connect(targetIp: string, targetPort: number, inPort: number, localOutPort?: number | null);

midiScript support:

To connect:

{osc.connect: targetIp: string, targetPort: number, inPort: number, localOutPort?: number | null}

  • targetIp: IP address of the target.
  • targetPort: remote port the target is listening on.
  • inPort: local port for listening for incoming messages.
  • localOutPort: (optional) The local port to which the plugin should send. If this argument is omitted, a default port will be chosen.

To disconnect:

{osc.disconnect}

You are not required to disconnect an OSC connection. When the button or dial is unloaded, the connection will disconnect automatically. If you need to change the connection parameters, you can call Connect() with the new parameters; it will disconnect before reconnecting.

To send:

{osc.send:address: string, …arguments: any []};

  • address: The OSC target address, e.g., “/fader1”
  • arguments: Any number of additional arguments.

The OSC message will be sent to the targetIP/targetPort using the localOutPort specified in the Connect call, or the default port if none was specified.

To receive:

(osc:address_or_*)

The filter for the osc event can be either “*” to trigger on all incoming messages on the defined receive port, or a specific address, e.g., “/fader1”.

Event variables available are:

@e_oscaddresse_@e_oscargcountscaddress

@e_oscargcount

Up to 5 argument@e_oscarg1 @e_oscarg5an be addressed using @e_oscarg1-@e_oscarg5.