Delay

Boot the server to get started.

For this lesson, we will work with audio files. If you are working in the SC IDE, execute the first cell. If you are using the notebook, copy and paste the path to the lecture folder that has glassHits.aiff and this file.

If Using SC IDE

If Using Notebook

Load the Buffer

Test to see if the glass plays properly.

Feedforward Comb Filter

A basic feedforward comb filter can be made by taking a sound source and adding it to a delayed copy of itself. It is simply an echo of the sound. The simplest way to implement a feedforward comb filter is using DelayN. DelayN requires an input signal, an argument for the maximum possible delay, the delay time, and a multiplicative factor to scale the delayed time.

Multiple Feedforward Delays

The example below uses multiple feedforward delays to create a more complex echo effect.

Important: WARNING

UGens like DelayN use dynamically allocated buffers to store data to be played back later as is typical for a delay. If you plan to use a lot of DelayN's or other UGens that use such memory allocation, then I strongly recommend increasing the server's memory storage for such UGens. This is a common case for the error "exception in real time: alloc failed".

Any buffers you allocated will need to be reloaded if you reboot. Therefore, it's a good idea to set the memory size before you start working.

Feedback Comb Filtering

With feedback comb filtering, the input signal is recursively delayed creating an infinite echo effect. When the delay time is small, the delay can create resonant peaks in the frequency spectrum. The effect is particularly palpable on a signal with a flat frequency spectrum like white noise.

Feedback Comb Implementation

Create an infinite series of echoes of a distance of 0.2 seconds for the glass hit.

Creating a Harmonic Series using Feedback Comb Filter

Bringing the delay time down amplifies the effect. The delay time controls where the harmonic resonant peaks lie.

The decay time controls how strong the resonant peaks are. Bring this up slowly.

Free all synths and busses.

The End