Skip to content

IannixIn

IanniX is a graphic sequencer. As its score plays, IanniX sends out OSC messages for the triggers and cursors in the score, and for its transport controls (play, stop, and fast rewind). Create an IannixIn to listen on a port, then use the on... methods to run your own functions when those messages arrive.

Creating a IannixIn

You can create a IannixIn using the following functions:

IannixIn()
IannixIn(port)
Parameter Type Default Description
port int 57110 The port to listen on for messages from IanniX.

For example,

iannixin = IannixIn(57800)

Functions

Once a IannixIn iannixin has been created, the following functions are available.

Function Description
iannixin.onTrigger(triggerID, action) Set up a function to call when a given trigger fires in the IanniX score.
iannixin.onCursor(cursorID, action) Set up a function to call as a given cursor moves through the IanniX score.
iannixin.onPlay(action) Set up a function to call when IanniX starts playing.
iannixin.onStop(action) Set up a function to call when IanniX stops.
iannixin.onFastRewind(action) Set up a function to call when IanniX fast-rewinds.
iannixin.onInput(oscAddress, action) Set up a function to call when a message arrives at a given address.
iannixin.showMessages() Start printing incoming OSC messages to the console.
iannixin.hideMessages() Stop printing incoming OSC messages to the console.