Tone.js
Web Audio framework for making interactive music in the browser, with DAW-like transport, synths and effects.
| Language | TypeScript / JavaScript |
|---|---|
| Category | Web Audio |
| License | MIT |
| Platforms | Web |
| Install | npm install tone |
| First released | ~2014 |
| Maintained | Yes |
| Links | Website · Source |
Strengths
- High-level, well-documented API over Web Audio
- Built-in transport/scheduling, synths, effects
- Large ecosystem and community
Limitations
- Browser-only; not for native/offline DSP
- Large bundle size for small use cases
Best for
Building interactive, browser-based music apps and instruments.
Minimal example
const synth = new Tone.Synth().toDestination();
synth.triggerAttackRelease("C4", "8n");