
Tonejs
This wraps Tone.js, the Web Audio framework that gives you synthesizers, samplers, effects chains, and precise musical scheduling without fighting the raw Web Audio API directly. You'd reach for it when building anything from a browser-based drum machine to audio visualizations to game sound effects. The skill documentation does a solid job explaining the critical timing concepts, like why you must pass the time parameter through callbacks for sample-accurate playback and why you need to call Tone.start() from a user interaction. The routing examples are clear, and the step sequencer patterns are practical. If you're doing any serious audio work in the browser, this is the standard tool.
- skills.sh installs
- 299
- GitHub stars
- 4
- last updated
- Aug 21, 2026
Install
$ npx -y skills add plyght/tonejs-skill --skill tonejs --agent claude-codeInstalls into .claude/skills of the current project.
Files
Tone.js Skill
Build interactive music applications in the browser using the Web Audio API through Tone.js's high-level abstractions.
When to Use This Skill
Use Tone.js when:
- Creating synthesizers, samplers, or musical instruments
- Building step sequencers, drum machines, or DAWs
- Adding sound effects or music to games
- Implementing audio visualizations synchronized to sound
- Processing audio in real-time with effects
- Scheduling musical events with precise timing
- Working with musical concepts (notes, tempo, measures)
Core Concepts
1. Context and Initialization
The AudioContext must be started from a user interaction (browser requirement):
import * as Tone from "tone";
// ALWAYS call Tone.start() from user interaction
document.querySelector("button").addEventListener("click", async () => {
await Tone.start();
console.log("Audio context ready");
// Now safe to play audio
});
2. Audio Graph and Routing
All audio nodes connect in a graph leading to Tone.Destination (the speakers):
// Basic connection
const synth = new Tone.Synth().toDestination();
Sponsors
Details
- Repository
- github.com/plyght/tonejs-skill
- Category
- Automation & Workflows
- First seen
- Jun 3, 2026