A Web Audio framework for creating interactive music in the browser
open sourceMITfree
Tone.js is a JavaScript framework on the Web Audio API for making interactive music and sound in the browser. It offers features familiar from a digital audio workstation: a global transport that synchronizes and schedules events in musical time, prebuilt synthesizers, a sampler, effects and players, plus lower-level building blocks (oscillators, envelopes, filters and audio-rate signals) to make your own instruments, effects and control signals. Times can be written in musical notation such as 8n or 1m. It installs from npm or loads from a CDN.
Problems it solves
- play synthesized notes and samples in a web page in time with a beat
- build a browser synthesizer or drum machine in JavaScript
- schedule musical events accurately in the browser
- add interactive music to my web app
Features
- global transport for scheduling in musical time
- prebuilt synths with envelopes
- Sampler for multi-sample instruments
- effects such as reverb, delay and distortion
- audio-rate signals for control
- musical time notation
- players for audio files
- runs on the Web Audio API
Alternatives
The same job
These do what Tone.js does.
- Strudel Live coding music patterns in the browser
