setnode
Redirect the recurse destination of a loopevent.
Syntax
Usage
graph LR
A([loopevent1]) ---> B([loopevent2]);
A -- 50% --> A
B ---> C([loopevent3]);
C ----> A;
setnode can be used in conjunction with loopevents.
Typical behaviour of a loopevent is to recursively schedule itself. We can say that the destination of the scheduled loopevent is itself.
setnode redirects the recurse destination of one loopevent to another loopevent instance.
This allows for a network of loopevent 'nodes' to be connected, each node triggering a call to another destination loopevent.
The call to the destination node occurs when the last event has been generated from the irhythms[] array in loopevent.
A probability factor introduces some limited Markov chain behaviour.
setnode is loosely based from concepts used in the Nodal generative music software.
Arguments
Snodesrc -- The source loopevent instance ID. This is typically the instrument name used in p1 of the i/kevent array in loopevent
inodesrc -- The source loopevent instance ID, This is typically the instrument number used in p1 of the i/kevent array in loopevent
Snodedest -- The destination loopevent instance ID. This is typically the instrument name used in p1 of the i/kevent array in loopevent
inodesrc -- The destination loopevent instance ID, This is typically the instrument number used in p1 of the i/kevent array in loopevent
iprob (optional, default=1) -- The probability that the destination node is called, or if loopevent calls itself again. Default is 1 - the destination node will always be called.