lphasor
Prev | Orchestra Opcodes and Operators | Next

## 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

    ares 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:

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

## Credits

Author: Istvan Varga
January 2002

New in version 4.18

Updated April 2002 and November 2002 by Istvan Varga

Prev | Up | Next
lpfreson | Home | lpinterp