loopsegpSignal Generators:Linear and Exponential Generatorsloopsegploopsegp
Control signals based on linear segments.
Description
Generate control signal consisiting of linear segments delimited
by two or more specified points. The entire envelope can be looped
at time-variant rate. Each segment coordinate can also be varied
at k-rate.
Syntaxksig loopsegp kphase, kvalue0, kdur0, kvalue1 \
[, kdur1, ... , kdurN-1, kvalueN]Performanceksig - output signal
kphase - point of the sequence read, expressed as a fraction of a cycle (0 to 1)
kvalue0 ...kvalueN - values of points
kdur0 ...kdurN-1 - duration of points expessed in fraction of a cycle
loopsegp opcode is similar to loopseg; the only difference is that, instead of frequency, a time-variant phase is required. If you use phasor to get the phase value, you will have a behaviour identical to loopseg, but interesting results can be achieved when using phases having non-linear motions, making loopsegp more powerful and general than loopseg.
Examples
Here is an example of the loopsegp opcode. It uses the file loopsegp.csd.
Example of the loopsegp opcode.See alsoLinear and Exponential GeneratorsCreditsWritten by &namegabriel;.New in Csound 5. (Previously available only on CsoundAV)