Summary

Delay a signal. Up to 8 separate delay taps can be used.


1 kHz burst, delayed 5.2 ms.

Audio Connections

PortPurpose
In 0Signal Input
Out 0Delay Tap #1
Out 1Delay Tap #2
Out 2Delay Tap #3
Out 3Delay Tap #4
Out 4Delay Tap #5
Out 5Delay Tap #6
Out 6Delay Tap #7
Out 7Delay Tap #8

Functions

delay(channel, milliseconds);

Set output channel (0 to 7) to delay the signals by milliseconds. The maximum delay is approx 333 ms. The actual delay is rounded to the nearest sample. Each channel can be configured for any delay. There is no requirement to configure the "taps" in increasing delay order.

disable(channel);

Disable a channel. The output of this channel becomes silent. If this channel is the longest delay, memory usage is automatically reduced to accomodate only the remaining channels used.

Examples

File > Examples > Audio > Effects > Delay

Notes

Memory for the delayed signal is take from the memory pool allocated by AudioMemory(). Each block allows about 3 milliseconds of delay, so AudioMemory should be increased to allow for the longest delay tap.