loopsegp
Prev | Orchestra Opcodes and Operators | Next

## loopsegp

loopsegp — 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.

## Syntax

    ksig loopsegp  kphase, kvalue0, ktime0, kvalue1, ktime1 [, ... , kvalueN, ktimeN]

## Initialization

initphase - initial phase value (in the 0 to 1 range)

## Performance

ksig - output signal

kphase - NO INFORMATION

kvalue0 ...kvalueN - values of points

ktime0 ...ktimeN - times 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 a 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.

## Credits

Written by Gabriel Maldonado.

New in Csound 5 (Previously available only on CsoundAV)

Prev | Up | Next
loopseg | Home | lorenz