deltapxw
Mixes the input signal to a delay line.
deltapxw mixes the input signal to a delay line. This opcode can be mixed with reading units (deltap, deltapn, deltapi, deltap3, and deltapx) in any order; the actual delay time is the difference of the read and write time. This opcode can read from and write to a delayr/delayw delay line with interpolation.
Syntax
Initialization
iwsize -- interpolation window size in samples. Allowed values are integer multiplies of 4 in the range 4 to 1024. iwsize = 4 uses cubic interpolation. Increasing iwsize improves sound quality at the expense of CPU usage, and minimum delay time.
Performance
ain -- Input signal.
adel -- Delay time in seconds.
Minimum and maximum delay times:
idlr >= 1/kr Delay line length
adl1 >= (iws1/2)/sr Write before read
adl1 <= idlr - (1 + iws1/2)/sr (allows shorter delays)
adl2 >= 1/kr + (iws2/2)/sr Read time
adl2 <= idlr - (1 + iws2/2)/sr
adl2 >= adl1 + (iws1 + iws2) / (2*sr)
adl2 >= 1/kr + adl3 + (iws2 + iws3) / (2*sr)
adl3 >= (iws3/2)/sr Write after read
adl3 <= idlr - (1 + iws3/2)/sr (allows feedback)
Note
Window sizes for opcodes other than deltapx are: deltap, deltapn: 1, deltapi: 2 (linear), deltap3: 4 (cubic)
Examples
Here is an example of the deltapxw opcode. It uses the file deltapxw.csd.
See also
Credits
Author: Istvan Varga
August 2001
New in version 4.13