lphasor

lphasor --  Generates a table index for sample playback

Description

This opcode can be used to generate table index for sample playback (e.g. tablexkt).

Syntax

ar lphasor xtrns [, ilps] [, ilpe] [, imode] [, istrt] [, istor]

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:

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

ar -- phase output. Can be used as index with table opcodes.

xtrns -- transpose. ar is incremented by this value, and wraps around loop points. It is not allowed to be negative.

Credits

Author: Istvan Varga

January 2002

New in version 4.18

Updated April 2002 by Istvan Varga