Turn a recording of a sine sweep into an impulse response. The sweep goes through the cabinet, the hardware or the room, and dividing the recording by the sweep leaves the response of what was in between.
Three steps
- Download the sweep. The default is 10 seconds from 20 Hz to 20 kHz at -6 dBFS, with a second of silence after it.
- Play it and record the result. Put the sweep on a track, send it through the device and record the return on another track. Keep recording until the tail has died away, then export the recorded track on its own.
- Drop the recording. The response appears with its decay and frequency response, and Download writes a 24-bit WAV.
The recording can start before the sweep and run past it. The direct sound is found automatically and the file begins 2 ms ahead of it. The recording’s sample rate does not have to match the downloaded file’s: the reference sweep is rebuilt at whatever rate the recording uses.
Setting up the recording
For a guitar cabinet, send the sweep from the interface through a reamp box into a power amp or the amp’s effects return, and record the microphone. Start the sweep at 50 or 100 Hz. A guitar speaker reproduces nothing below that, and the time is better spent where it can.
For a hardware reverb, delay or EQ, connect an interface output to the unit and the unit’s outputs to two inputs. Set the unit fully wet. Record both channels to one stereo file and the result is a stereo response.
For a room, a longer sweep is worth the wait. Each doubling of the sweep length lowers the noise floor of the result by 3 dB.
Keep the level under clipping at every stage. A recording that reaches full scale is flagged, because clipped peaks become part of the response.
Response length
Auto ends the response where its decay meets the noise floor: the first 50 ms that stays within 10 dB of the floor. A fixed length is there for loaders that expect one, such as a cabinet IR at 0.25 or 0.5 s.
The last 10 ms fades to silence so the cut does not click. The figure beside the length is the distance from the loudest part of the response to its floor; 50 dB or more is a clean capture.
Minimum phase
Every response has a frequency balance and a timing. Minimum phase keeps the first and rebuilds the second so that all the energy arrives as early as it can.
A cabinet response captured with a microphone a few centimetres from the cone has a few milliseconds of travel time and some pre-ringing in it. The minimum-phase version starts at sample 0, which removes the latency and lets two cabinet IRs be blended without their timing differences combing.
Leave it off for anything whose character is in time: rooms, halls, plates, springs and delays.
Why a sweep
Dividing by the test signal works with any signal that covers the spectrum. The exponential sweep is used for what it does with distortion.
When a device distorts, it adds harmonics. During an exponential sweep, the second harmonic of the frequency playing now is a frequency the sweep itself reaches a fixed time later. After the division, each harmonic collapses into its own small copy of the response at a negative time, ahead of the direct sound. Cutting from the direct sound forward leaves the distortion out, and what remains is the linear response.
Below the sweep’s first frequency and above 20 kHz the test signal carries no energy, so the division is regularised there and the result falls to silence instead of amplified noise.
What the response includes
Everything between the played file and the recorded file is in it: the converter that played the sweep, cables, the device, the microphone and its preamp, and the converter that recorded. For a cabinet that is the point. For a hardware unit, a loopback recording of the interface alone shows how little the converters add.
Play and record on the same audio interface. Two devices on separate clocks drift apart over the length of the sweep, which smears the top of the response.
Using the file
Attach the WAV in the convolution reverb to hear a recording through it, or load it in any IR loader or convolution plug-in. The button under the stats sends the response to the reverb time analyzer for T20 and T30 per octave band.