loopctr
Generate a repeating sequence of control signal shapes.
Syntax
Usage
loopctr behaves similarly to loopevent, however instead of generating score events, loopctr repeatedly generates a control signal shape.
loopctr reads the current value of a control channel, then over a duration defined in i/krhythms[] moves that control value to a value in idests. The channel value then moves to the next and subsequent destination values in idests[] in breakpoint fashion. When the last value in idests[] is reached, the control signal resets back to the beginning and repeats the movement.
Re-evaluating a loopctr replaces any currently running loops with a matching channel name with immediate effect.
Outputs and Arguments
Schan -- Output channel. loopctr doesn't have a k-rate output argument: Instead, it updates values in this channel.
i/kdests[] -- A series of destination points for the control signal to reach.
i/krhythms[] -- Time intervals for the control value to reach each destination.
istatus (optional, default=1) -- An on/off switch. If istatus=0, the loop stops. If istatus=1, the loop starts.
iinitreset (*optional, default=0) -- Ignore the current value of the channel, and get the initial channel value from iinitval.
iinitval (optional, default=0) -- When iinitreset is non-zero, initialise the loop with this iinitval.
itype (optional, default=0) -- the curve type between destination points. This follows the same type curves as defined in the Csound opcode transeg.
ist (*optional, default=0) -- delay time in seconds to begin the loop.
See also setnode