DelayLine


DelayLine

Creates a delay line

Synopsis

DelayLine <sample symbol> <nbytes> [<nchannels> [<loop (1/0)>]]

Description

Creates a delay line (a special kind of sample) which can be attached to delay instruments.

Argument

<sample symbol>
New symbol in sample name space for the delay line.
<nbytes>
Size of delay line in bytes (not frames!). The formula for computing nbytes is: nchannels * nframes * 2. For a 1 second single channel delay, specify 44100 * 1 * 2, or 88200, bytes. This arcane method is identical to the audio folio DelayLine() function, and is intended to force you to realize how much memory you are actually using. The same method is used here because it seemed inappropriate to give the patch language a subtly different dialect from the audio folio.
<nchannels>
Optional # of channels. Defaults to 1.
<loop>
Optional argument that indicates whether or not delay line should be looped (1) or played only once (0) when started. Defaults to loop.

See Also

AttachSample, LoadInstrument