lphasor
Generates a table index for sample playback (e.g. with tablexkt).
Syntax
Initialization
ilps -- loop start.
ilpe -- loop end (must be greater than ilps to enable looping). The default value of ilps and ilpe is zero.
imode (optional: default = 0) -- loop mode. Allowed values are:
- 0: no loop
- 1: forward loop
- 2: backward loop
- 3: forward-backward loop
istrt (optional: default = 0) -- The initial output value (phase). It must be less than ilpe if looping is enabled, but is allowed to be greater than ilps (i.e. you can start playback in the middle of the loop).
istor (optional: default = 0) -- skip initialization if set to any non-zero value.
Performance
ares -- a raw table index in samples (same unit for loop points). Can be used as index with the table opcodes.
xtrns -- transpose factor, expressed as a playback ratio. ares is incremented by this value, and wraps around loop points. For example, 1.5 means a fifth above, 0.75 means fourth below. It is not allowed to be negative.
Examples
Here is an example of the lphasor opcode. It uses the file lphasor.csd.
See also
Credits
Author: Istvan Varga
January 2002
Example by: Jonathan Murphy
New in version 4.18
Updated April 2002 and November 2002 by Istvan Varga