lphasorSignal Generators:Sample Playbacklphasorlphasor
Generates a table index for sample playback
Description
This opcode can be used to generate table index for sample playback (e.g. tablexkt).
Syntaxares lphasor xtrns [, ilps] [, ilpe] [, imode] [, istrt] [, istor]Initializationilps -- 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 loop1: forward loop2: backward loop3: forward-backward loopistrt (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.
Performanceares -- 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.
Example of the lphasor opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoSample PlaybackCreditsAuthor: &nameistvan;January 2002Example by: Jonathan MurphyNew in version 4.18Updated April 2002 and November 2002 by &nameistvan;