Psychoacoustics · Masking simulations

Auditory masking

Psychology of Perception. Dr. Ignacio Serrano-Pedraza (2026).

A single auditory channel, modelled as a gammachirp filter, and three classic noise-masking experiments. All of them rest on the same assumption: the listener detects the signal when the signal-to-noise ratio (SNR) at the output of the filter reaches a fixed value. So anything that changes how much noise passes through the filter changes the threshold.

Demos 2, 3 and 4 can be heard: turn on “Sound” and start with the volume low, ideally with headphones.
fs = 44100 Hz · duration 0.5 s · resolution 2 Hz · band-limited noise, N₀ = 10L₀/10·10⁻¹² (Hartmann)
Demo 1 · The model

The gammachirp auditory filter

The impulse response is a gammatone with a chirp term, c·ln t, that makes the filter asymmetric (Irino and Patterson, 2001). The bandwidth follows the ERB of Glasberg and Moore (1990). As in the original scripts, the carrier frequency is shifted so that the filter peak falls exactly at the nominal frequency.

g(t) = a·tn−1·e−2πbt·cos(2πfrt + c·ln t)
ERB = 24.7·(4.37·f/1000 + 1) · b = 1.019·ERB · fr = f − c·b/n

What to look for. With c < 0 the low-frequency slope is shallower: the filter passes more energy below its peak. With c = 0 you get back the symmetric gammatone.

Impulse response

Real partImaginary part

Frequency response

Filter (amplitude)ERB-wide rectangle
Demo 2 · Fixed signal, moving noise

Psychophysical tuning curve

The signal is a fixed tone and the channel is centred on it. A narrowband noise sweeps across the spectrum. The further from the filter the noise falls, the less energy gets through and the higher the output SNR: a much higher noise level would be needed to mask the signal.

What to look for. The V-shaped curve is the filter shape turned upside down. Its low-frequency side is less steep: a noise below the signal masks more than one equally far above it.

Audio

Drag with the mouse on either plot to move the noise (or use the ← → keys with the plot selected). When you release, that point is played if sound is on.

Spectrum at the channel input

SignalNoiseFilter

Psychophysical tuning curve

Simulated SNR
Demo 3 · Fixed noise, moving signal

Excitation pattern

Now the noise is fixed and the signal moves. For each signal frequency the listener uses the channel centred on it. The inverted output SNR is proportional to the masked threshold, so the curve traces how strongly the noise excites each channel.

What to look for. The pattern extends further towards high frequencies: this is the upward spread of masking. It is the same filter asymmetry seen from the other side, and the wider filters at high frequencies make it stronger.

Audio

Drag with the mouse on either plot to move the signal and its channel (or use the ← → keys with the plot selected). When you release, that point is played if sound is on.

Spectrum at the channel input

SignalNoiseFilter

Excitation pattern

Inverted SNR
Demo 4 · Band-widening (Fletcher)

The critical band

The noise is centred on the signal and widened while its spectral density stays constant. While the band fits inside the filter, every added hertz masks more and the threshold rises. Once the band is wider than the filter, the extra noise falls outside it and the threshold stops growing.

At the end of the sweep, Fletcher's model is fitted, with a rectangular filter of width CB:

threshold = a + b·20·log₁₀( min(W, CB) )

What to look for. The knee of the curve estimates the channel width. The critical band increases with signal frequency.

Audio

Drag with the mouse on the spectrum to widen or narrow the noise, or on the results plot to pick the bandwidth. You can also type it in “Noise bandwidth”.

Spectrum at the channel input

SignalNoiseFilter

Masking results

DataModelSimulated CB