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/filter-diode-ladder

v1.2.1

Published

Diode ladder filter (Roland TB-303 / EMS VCS3 style)

Readme

@audio/filter-diode-ladder npm MIT

Diode ladder filter (Roland TB-303 / EMS VCS3 style)

npm install @audio/filter-diode-ladder
import diodeLadder from '@audio/filter-diode-ladder'

Roland TB-303 / EMS VCS3 style — per-stage saturation gives the characteristic acid "squelch".

Circuit: Roland TB-303, EMS VCS3, EDP Wasp Key difference from Moog: stages are bidirectionally coupled — no unity-gain buffers between them (unlike Moog), so each stage loads its neighbors; solved as one tridiagonal system per sample (Thomas algorithm) instead of Moog's simple forward cascade Character: preserves more bass at high resonance than Moog — closed-form DC gain $1/(1 + 4\cdot\text{resonance})$ vs Moog's $1/(1 + 4\cdot\text{resonance}\cdot(1+G+G^2+G^3+G^4))$, $G<1$ — and more "squelchy"/aggressive due to the per-stage $\tanh$ Implementation: ZDF (zero-delay feedback) via trapezoidal integration — Zavalishin, The Art of VA Filter Design (2012); Pirkle, Designing Audio Effect Plugins in C++, 2nd ed. (2019), Ch. 10 Stability: bounded (per-stage $\tanh$-saturated) across the documented 0–1 range and well beyond; self-oscillates near resonance≈1.15–1.2 — higher than Moog's exact 1, since the extra per-stage $\tanh$ adds damping

let params = { fc: 500, resonance: 0.8, fs: 44100 }
diodeLadder(buffer, params)

| Param | Default | | |---|---|---| | fc | 1000 | cutoff frequency, Hz | | resonance | 0 | 0–1; feedback k = 4·resonance (same mapping as moogLadder); self-oscillates near ≈1.15–1.2 | | fs | 44100 | sample rate, Hz | | drive | 1 | input gain into each stage's tanh saturation; 0 mutes the signal |

Pass the same params object on every call to persist the 4 stage states across blocks.

Use when: acid basslines, squelchy synth leads — resonance character that stays bounded (not self-oscillating) across most of the range, unlike moogLadder.


Part of @audio/filter — the filter family umbrella. This README is generated from the umbrella docs.

MIT © audiojs