# Make your own impulse response

> Record a room, a cabinet or an object as an impulse response with a sine sweep or a click, or design one, then prepare a WAV file a Maru convolution effect can use.

Canonical: https://maru.audio/help/make-your-own-impulse-response
Documentation index: https://maru.audio/help/llms.txt

You can make an impulse response (IR) of almost anything that sound passes
through: a room, a stairwell, a guitar cabinet, a metal bowl. You play a known
sound through it, record what comes back, and turn that recording into the
space's answer to a single click. The result is an ordinary WAV file. This
guide covers the three ways to make one and how to prepare the file so a Maru
convolution effect accepts it.

| Method | Quality | What you need | Good for |
| --- | --- | --- | --- |
| **Sine sweep** | Best: clean, full range, low noise | A speaker, a microphone, an audio interface and a measurement tool | Rooms, halls, cabinets you want to ship |
| **Click or pop** | Rough: noisy, uneven bass | A microphone and something that makes a sharp, loud click | Quick captures and creative character |
| **Design** | Exactly what you specify, no noise | Code or any audio editor | Effects you can adjust and ship without licensing anyone's recording |

## Capture a space with a sine sweep

A sweep is a sine tone that glides from the lowest to the highest frequency.
Because the tone covers each frequency in turn, a measurement tool can divide
the recording by the sweep and recover the impulse response, with far less
noise than a click gives. Free tools such as Room EQ Wizard (REW), and the
impulse-response utilities some DAWs include, generate the sweep and do this
step for you.

1. **Make the sweep.** Use an exponential (logarithmic) sweep from 20 Hz to
   20 kHz, 5 to 15 seconds long. Longer sweeps reject more background noise.
   Follow it with silence at least as long as the space rings: a few hundred
   milliseconds for a cabinet, two or three seconds for a room, six or more
   for a large hall.
2. **Place the speaker and the microphone.** Put the speaker where the sound
   source would be (a singer, a drum kit) and the microphone where the
   listener would be. The distance between them is part of the sound. For
   stereo, record two microphones at once, spaced or crossed.
3. **Set the level.** Play the sweep loud enough to stand well above the
   room's noise, with the recording peaking around −12 to −6 dBFS. Turn off
   fans, fridges and air conditioning, and keep still while it records.
4. **Record.** Use the sample rate you will use the IR at (48 kHz is a good
   default) and 24-bit or 32-bit float. Record the sweep and all of the
   silence after it.
5. **Recover the IR.** Give the tool the recording and the original sweep. It
   returns the impulse response. Record two or three takes and keep the
   cleanest one.

An exponential sweep has a useful side effect: distortion from the speaker
lands *before* the impulse response in time, separate from it. Trimming the
start of the file, described below, removes it.

**True stereo.** A stereo IR records one speaker position. To capture how a
room answers sound from both sides, measure twice, with the speaker on the
left and then on the right, keeping the two microphones in place. The four
recovered channels, in the order left→left, left→right, right→left,
right→right, make a four-channel true-stereo IR.

**Cabinets.** Feed the sweep through a power amplifier into the cabinet
(never through the guitar amplifier's own distortion) and place the
microphone close to the speaker, as you would to record a guitar. Moving the
microphone across the cone changes the tone more than anything else. A
cabinet IR only needs the first 20 to 200 milliseconds.

## Capture a space with a click

A balloon pop, a hand clap, a starter pistol or two pieces of wood slapped
together all make a short burst that excites a space. Record it with the
microphone where the listener would be, and the recording is already an
impulse response: there is nothing to recover.

The catch is that a click is not equally loud at every frequency. Bass is
usually weak, the click itself colours the result, and background noise is
much louder relative to the tail. Use clicks for a quick capture of a space
you can't bring a speaker to, or when that character is what you want.

## Design an impulse response

An IR does not have to be a recording. A short burst of noise that fades out
smoothly already sounds like a room; filtering it darker over time sounds like
a room with soft furnishings; a few sharp, spaced peaks at the start sound
like walls. [Space Mini](https://maru.audio/plugins/@maru/space-mini) builds all of its spaces
this way, which is why its Size and Damping controls can reshape them, and
[Amp Rig](https://maru.audio/plugins/@maru/amp-rig) designs its cabinets from a click, a short
noise body and a few filters.

Any short sound works as a creative IR too: a single piano note, a cymbal
swell, a reversed tail. Convolving a voice with a bell recording makes the
voice ring at the bell's pitches. Designed IRs carry no one else's rights,
so you can ship them freely.

## Prepare the file

Whichever way you made it, clean the IR up in an audio editor before you use
it:

- **Trim the start** to just before the first sound arrives. Leave a gap only
  if you want built-in pre-delay; most effects, including Space Mini, have a
  Pre-Delay control for that.
- **Trim the end** where the tail sinks into the noise, and fade out over the
  last 50 to 200 milliseconds so it does not stop abruptly.
- **Normalise** so the loudest sample sits just below full scale. Effects
  level IRs in different ways, so an IR can still come out louder or quieter
  than the effect's own spaces; adjust the effect's level, not the file.
- **Remove DC offset** if your editor offers it. A file that is not centred on
  zero thumps when it starts.
- **Export a WAV file.**

What Maru accepts when an effect loads your IR file:

| Property | Accepted |
| --- | --- |
| Format | WAV only, up to 16 MiB |
| Channels | Mono, stereo, or four-channel true stereo, depending on the effect |
| Sample rate | 8 kHz to 384 kHz; the host converts it to the rate the effect runs at |
| Length | Up to the effect's own limit. Space Mini holds 6 seconds at 48 kHz (3 seconds at 96 kHz) |
| Samples | Finite values only |

A file that is too long or has the wrong channel count is refused with a
message rather than being cut short or folded down, so shorten it or export
the channel layout the effect asks for.

## Use your impulse response

You use your own IRs by building them into an effect. Maru's convolution
effects, including Space Mini and Amp Rig, play their own designed IRs and
don't take a file from their panels.

If you are building an effect, ship your IR inside it as a factory sound. A
factory IR reaches your effect as its first channel only and at the file's own
sample rate, so export it as mono at the rate your effect runs at, or design
stereo IRs in code. [Build a reverb, room or cabinet effect](https://maru.audio/help/build-a-reverb-or-space-effect.md)
explains how to bind it to a selector.

**Rights.** An IR of a room you recorded is yours. An IR of someone else's
venue, studio or product may need their permission to publish, and an IR you
downloaded keeps its own licence: many free IR packs forbid redistribution
inside another product. Note where each IR came from and under what terms.

## If it doesn't sound right

| What you hear | Likely cause | What to try |
| --- | --- | --- |
| Hollow or phasey when mixed with the dry sound | The IR starts with a long gap, or the dry sound is doubled inside the IR | Trim the start; lower the effect's mix |
| A hum or hiss under the tail | Background noise or mains hum in the recording | Re-record in a quieter moment, use a longer sweep, or trim the tail earlier and fade it |
| A chirp or click before the sound | Speaker distortion from the sweep, or a pre-echo before the direct sound | Trim the start up to the direct sound |
| Thin, little bass | Captured with a click, or a small speaker | Use a sweep and a full-range speaker, or add bass with EQ after the effect |
| The tail stops abruptly | The file was cut without a fade | Fade out the last 50 to 200 milliseconds |
| The stereo image is narrow | The IR is mono | Record two microphones, or design a stereo IR |
| The file is refused | Too long, too large, wrong channel count or not a WAV | Check it against the table above |

## Ask your agent

```text
Read the Maru Help article "Make your own impulse response". I recorded a
sweep in my stairwell as a 48 kHz stereo WAV. Help me trim and fade the
recovered IR, then add it to my reverb module as a factory IR next to the
designed spaces, with its provenance recorded.
```

Developers can find the convolution building blocks and the IR preparation
helpers in the [DSP library](https://maru.audio/docs/dsp.md).
