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/synth-modal

v0.2.1

Published

Modal synthesis — two-pole resonator bank (string/bar/membrane/plate/tube), impulse or noise excited

Readme

@audio/synth-modal npm MIT

Modal synthesis — impulse-invariant resonator bank; F&R-cited bar/membrane/plate/tube/stiff-string tables, strike-position weighting, per-mode T60

npm install @audio/synth-modal
import modal from '@audio/synth-modal'

A bank of impulse-invariant two-pole resonators, one per vibrational mode, excited by an impulse or short noise burst (Adrien 1991, "The missing link: modal synthesis"; Cook, Real Sound Synthesis for Interactive Applications, ch. 5). Mode-ratio tables per model are cited from Fletcher & Rossing, The Physics of Musical Instruments, 2nd ed. — string (Fletcher 1964 stiff-string), bar (free-free Euler-Bernoulli), membrane (Bessel-zero circular membrane), plate (free circular plate), tube-open/tube-closed (pipe harmonics/odd-harmonics).

modal(220, { model: 'string', inharmonicity: 0.0002, strike: 0.3 })

| Param | Default | | |---|---|---| | freq | — | Fundamental (mode 1) Hz (positional) | | model | 'bar' | 'string' | 'bar' | 'membrane' | 'plate' | 'tube-open' | 'tube-closed' | | modes | — | Custom [{ratio, gain?, t60?}] — overrides model/nmodes/inharmonicity | | nmodes | 8 | Modes drawn from the model's table | | t60 | 2 | Fundamental decay time, seconds (-60dB) | | damping | 0.7 | HF loss exponent: t60_k = t60·(f1/fk)^damping | | inharmonicity | 0 | String-only stiffness coefficient B: fk = k·f1·√(1+B·k²) | | strike | 0.5 | 0..1 strike/pluck position (1D models only) | | exciter | 'impulse' | 'impulse' | 'noise' | custom Float32Array | | duration | — | Default: covers the slowest mode's T60 | | amp | 0.8 | Peak amplitude | | seed | 9 | Noise-exciter PRNG seed | | fs | 44100 | Sample rate |

Use when: physically-grounded percussive/struck timbres (bars, membranes, plates, strings, tubes) with per-model literature-sourced mode ratios rather than hand-tuned partials.


Part of @audio/synth — the synth family umbrella.

MIT © audiojs