Tone.js
More info
- Creator
- Yotam Mann
- Type
- JavaScript library
- License
- MIT
- Source
- github.com/Tonejs/Tone.js
A JavaScript framework that puts musical concepts — bars, notes, synths — on top of the browser's Web Audio API.
The Web Audio API thinks in seconds and nodes; it has no notion of quarter notes or tempo. Tone.js, written by Yotam Mann, adds a Transport that tracks bars and BPM, so you can schedule "4n" or "1m" instead of floating-point timestamps. On top sit ready-made synths, samplers, effects and sequencers.
It also solves a dull but decisive problem: JavaScript timers are far too jittery for music. Tone.js schedules events slightly ahead of time on the audio clock, which runs steadily. It shows up in web instruments, music education and interactive art, and has made it reasonable to build a small DAW inside a browser tab.