Running it
Browsers only allow the microphone on secure pages. Opening this file directly usually works in Chrome and Edge. If the microphone is blocked, open a terminal in the file's folder, run python3 -m http.server 8000 and go to http://localhost:8000/cochlea-live.html. Any https web page also works.
The page asks the browser to turn off echo cancellation, noise suppression and automatic gain control, so the filterbank sees the raw signal. Some laptops still process the sound in hardware or drivers; an external USB microphone is the safest choice.
Levels are in dB FS (0 dB = full-scale sine) after the input gain. The microphone is not calibrated, so they are not dB SPL.
What you see
Each filter is a 4th-order gammatone with bandwidth 1.019 × ERBN = 24.7 (4.37 fc/1000 + 1) Hz and 0 dB gain at its centre frequency. It runs sample by sample in an audio worklet as four cascaded complex one-pole filters. Nothing else is modelled: no middle ear, no compression, no hair cells.
The bars show each filter's running output level (125 ms time constant, like a sound level meter's Fast setting): the live excitation pattern. The cochleogram shows the same levels over the last few seconds.
With the trigger on, each frame starts at an upward zero crossing of the selected filter's output, so periodic sounds stand still.