npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@audio/reverb-dattorro

v1.2.0

Published

Dattorro plate reverb — input diffusers + figure-eight tank (JAES 1997 topology and taps)

Readme

@audio/reverb-dattorro npm MIT

Dattorro plate reverb — input diffusers + figure-eight tank (JAES 1997 topology and taps)

npm install @audio/reverb-dattorro
import dattorro from '@audio/reverb-dattorro'

Input diffusion (4 series allpasses) feeding a figure-eight tank of two cross-coupled branches (allpass → delay → one-pole damping → decay → allpass → delay), each branch's output re-entering the other. Structure, delay lengths, and output taps are Dattorro's Table 1/2 ("Effect Design Part 1: Reverberator and Other Filters", JAES 45(9), 1997), reference rate 29761 Hz, scaled to fs. Modulation (chorus on the tank delays) is omitted — a static tank. Mono input sums to a single feed and both output taps blend into one channel; stereo input feeds the tank from (L+R)/2 and reads the two taps independently for width. Strictly stereo, not N-channel: only data[0]/data[1] are read and written.

dattorro(data, { decay: 0.6, damping: 0.3, mix: 0.3, fs: 44100 })
dattorro([left, right], { decay: 0.85, mix: 0.4 })  // stereo, longer tail

| Param | Default | | |---|---|---| | decay | 0.5 | 0..1 — tank feedback (tail length) | | damping | 0.3 | 0..1 — one-pole high-frequency loss in each tank branch | | bandwidth | 0.9995 | input low-pass coefficient (pre-tank high-cut) | | mix | 0.3 | 0..1 — wet/dry blend | | fs | 44100 | sample rate; delay lengths scale to it |

Mutates data in place and returns it. Fresh tank state is allocated per call, so each call starts from a silent tank. To run a signal in pieces, carry one tank from piece to piece:

import { state, stream, tail } from '@audio/reverb-dattorro'
let s = state(48000), p = { decay: [0.6], damping: [0.3], mix: [0.3] }
stream(left, right, p, s)   // each piece in turn, in place; right is null for mono
tail({ decay: 0.6, damping: 0.3, fs: 48000 })   // seconds the output takes to fall 60 dB under the input once it stops

state(fs) makes the tank once. stream(left, right, p, s, n) runs n frames (all of left by default), and the pieces together are the samples one whole call gives, bit for bit. p holds the values as a host gives them, each a one-element array, read at each call, so they may change between pieces. stream(left, right, p, s, n, lanes, M) takes decay and mix for each frame instead, from 0 and from M of lanes. tail is the tank's slowest mode at those values: τ·log10(1000·G) / −log10(decay⁴) (Schroeder 1962, from G times the input to 60 dB under it), τ the loop's longest delay at any frequency and G = 0.6·(3 + 6·decay)/(1 − decay²) a bound on the tank's peak gain, which a held input builds the ring up to at most; after the input diffusers ring out. It is Infinity at decay 1, and at damping 1 with a decay above 0, where the damping one-pole holds its value.

The /audio processor runs the streaming form: one tank per instance, made with it; decay, damping and mix read at each call and smoothed over 20 ms by the host. decay and mix scale the signal, so they move sample by sample along the host's ramp, 32 frames behind it: the output is the same however the host cuts its calls, and a held value is the value itself. damping retunes the one-poles at each call. No latency; its tail is tail() at the values in force.

Use when: plate/studio-reverb character, long shimmering tails. Not for: short room ambience (use freeverb/schroeder) or a physically-modeled spring "boing" (use spring).


Part of the @audio/reverb family.

MIT © audiojs