vdelay
An interpolating variable time delay.
It is not very different from the existing implementation (deltapi), it is only easier to use.
Syntax
Initialization
imaxdel -- Maximum value of delay in milliseconds. If adel gains a value greater than imaxdel it is folded around imaxdel. This should not happen.
iskip -- Skip initialization if present and non-zero
Performance
With this unit generator it is possible to do Doppler effects or chorusing and flanging.
asig -- Input signal.
adel -- Current value of delay in milliseconds. Note that linear functions have no pitch change effects. Fast changing values of adel will cause discontinuities in the waveform resulting noise.
Examples
Here is an example of the vdelay opcode. It uses the file vdelay.csd.
Two important points here. First, the delay time must be always positive. And second, even though the delay time can be controlled in k-rate, it is not advised to do so, since sudden time changes will create clicks.
See also
Credits
Author: Paris Smaragdis
MIT, Cambridge
1995