IannixTrigger representation of Iannix app trigger, in sclang
Inherits from: Object : IannixObject
! See first: IannixObject for common variables and methods for all Iannix objects.
Creation / Class Methods
*new (parent, id)
parent - mandatory. must be an instance of Iannix class
id - if nil: automatically incremented, based on already created object of this type, and default offset for this type.
i = Iannix.new;
t = IannixTrigger.new(i); //creation in sclang
t.send; // actually send an osc message to Iannix app for object creation;
t.position_(1, 2, 0) //x, y, z positions
t.size_(8)
Note: Its better to create a trigger this way (automatic indexation, sending and positionning):
i = Iannix.new;
t = i.trigger(1, 2, 0); //x, y z positions
Accessing Instance and Class Variables
y
position on the vertical plane.
x
Position on the horizontal plane
z
Position on the z plane.
action
the action (function ) associated to this object, if any. See IannixObject help file for defining an action
value
Default value is 127. (in Iannix app documentation, an active trigger has 127 as value, and 0 if inactive).
Action
triggerOff_ (delay)
delay - timing for sending a noteOff value (0). In seconds;
Example
i !? {i.resetScore(total: true)};
i = Iannix.new;
20.do { i.trigger(rrand(0, 10.0), rrand(0, 10.0), rrand(0, 10.0)).color_(Color.rand) };
See for further examples