tonejs
Use when adding audio, sound design, music sequencing, or audio-reactive animation to a project.
Skill by imMamdouhaboammar
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/immamdouhaboammar-tonejs
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, data, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/tonejs
What's inside
- Skill name
tonejs- Description
- Use when adding audio, sound design, music sequencing, or audio-reactive animation to a project. Use when syncing Tone.js with GSAP timelines, creating beat-locked animations, playing sound effects on motion events, generating oscillator tones, or building audio visualizers with waveform/frequency data driving DOM elements.
- License
- MIT
- Instructions
- 205 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Tone.js
## When to Use This Skill
Apply when any of the following are needed:
- Playing audio files (SFX, VO, music) alongside GSAP animations
- Beat-synchronized or BPM-locked animation (e.g. scene cuts on the beat)
- Audio-reactive visuals: DOM/SVG elements animated by waveform or frequency data
- Programmatic sound generation (synths, oscillators, UI sounds)
- Adding audio effects (reverb, delay, distortion) to any source
**Related skills:** For timeline sequencing use **gsap-timeline**, for performance use **gsap-performance**, and for scroll-sync use **gsap-scrolltrigger**.
> ⚠️ **Browser Autoplay Policy**: `Tone.start()` MUST be called inside a user-gesture handler (click, keydown, etc.). Audio context will not resume otherwise. Always gate initialization behind an interaction.
---
## Setup
**CDN (vanilla HTML projects):**
```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/tone/14.8.49/Tone.js"></script>
```
**npm / bun:**
```bash
bun add tone
```
```js
import * as Tone from 'tone';
```
**Required initialization (always wrap in user gesture):**
```js
document.getElementById('start-btn').addEventListener('click', async () => {
await Tone.start(); // Resume AudioContext
Tone.getTransport().start(); // Start master clock
}, { once: true });
```
---
## Core Architecture
```
Tone.js signal graph
Source → Effect(s) → Destination
Synth Reverb toDestination()
Player Delay
Analyser Distortion
```
All nodes connect via `.connect()` or `.toDestination()` shorthand.
---
## Quick Reference
| Task | API |
|---|---|
| Play a tone | `new Tone.Synth().toDestination().triggerAttackRelease("C4", "8n")` |
| Load + play file | `new Tone.Player(url).toDestination(); player.start()` |
| Add reverb | `const rev = new Tone.Reverb(2).toDestination(); synth.connect(rev)` |
| Schedule on beat | `Tone.getTransport().scheduleRepeat(cb, "4n")` |
| Read waveform | `new Tone.Analyser("waveform", 64).getValue()` |
| Read frequency | `new Tone.Analyser("fft", 32).getValue()` |
| Set BPM | `Tone.getTransport().bpm.value = 120` |
| Sync visual to audio | `Tone.getDraw().schedule(() => { /* gsap here */ }, time)` |
| Stop everything | `Tone.getTransport().stop(); Tone.getTransport().cancel()` |
---
## GSAP Sync: The Right Way
**Problem:** Tone callbacks run on the audio thread. Calling `gsap.to()` directly inside them causes jitter.
**Solution:** Always use `Tone.getDraw().schedule()` to bridge audio events to the visual frame.
```js
// Correct: no jitter
Tone.getTransport().scheduleRepeat((time) => {
Tone.getDraw().schedule(() => {
gsap.fromTo('#element', { scale: 1 }, { scale: 1.2, duration: 0.1 });
}, time);
}, '4n');
// Wrong: triggers on audio thread, causes jitter
Tone.getTransport().scheduleRepeat((time) => {
gsap.to('#element', { scale: 1.2 }); // DO NOT do this
}, '4n');
```
---
## Audio-Reactive Animation
Wire a `Tone.Analyser` into the GSAP ticker to drive DOM elements in real time:
```js
const analyser = new Tone.Analyser('waveform', 64);
const synth = new Tone.Synth().connect(analyser).toDestination();
// Pull audio data every animation frame via GSAP ticker
gsap.ticker.add(() => {
const waveform = analyser.getValue(); // Float32Array, values in [-1, 1]
const bars = document.querySelectorAll('.bar');
bars.forEach((bar, i) => {
const amp = Math.abs(waveform[i] ?? 0);
gsap.set(bar, { scaleY: 1 + amp * 15 }); // gsap.set: no tween overhead
});
});
synth.triggerAttackRelease('C3', '1n');
```
> Use `gsap.set()` (not `gsap.to()`) inside `ticker.add()` because creating new tweens every frame is expensive.From imMamdouhaboammar/motion-graphics-skills, MIT.
More from imMamdouhaboammar/motion-graphics-skills
- 0.652score
motion-design
LottieFiles
Applies motion design principles to create emotionally-driven, technically sound animations and transitions.
SkillAFreshness: A★ 33Claude Code +9 - 0.537score
motion-director
imMamdouhaboammar
Master motion-graphics director for concept, art direction, timing, production, review, and rendering across brand films, event promos, title sequences…
SkillAFreshness: A★ 33Claude Code +9 - 0.537score
paper-cut-motion
imMamdouhaboammar
Create tactile stop-motion paper-cut and collage sequences with deterministic 12 fps stepped motion, physical layering, paper shadows, stamps, pins, and…
SkillAFreshness: A★ 33Claude Code +9 - 0.537score
video-review-loop
imMamdouhaboammar
Use when a rendered motion video, MP4, MOV, reel, promo, title sequence, or final export must be reviewed from recorded video evidence before signoff.
SkillAFreshness: A★ 33Claude Code +9 - 0.537score
text-to-lottie
imMamdouhaboammar
Create, edit, or fix Lottie/Bodymovin JSON animations for the local Skia Skottie player.
SkillAFreshness: A★ 33Claude Code +9 - 0.537score
speech-to-text
imMamdouhaboammar
Directs the agent to use faster-whisper as the high-accuracy speech-to-text / Voice-over transcription engine.
SkillAFreshness: A★ 33Claude Code +9 - 0.537score
assetseeker
imMamdouhaboammar
Search free commercial-use creative assets across multiple online sources - photos, illustrations, icons, video footage, music, sound effects, and fonts.
SkillAFreshness: A★ 33Claude Code +9 - 0.534score
video-style-cloner
imMamdouhaboammar
Style-cloning video director for AI agents.
SkillAFreshness: A★ 33Claude Code +9 - 0.533score
gpt-taste
imMamdouhaboammar
Elite UX/UI & Advanced GSAP Motion Engineer.
SkillAFreshness: A★ 33Claude Code +9 - 0.533score
brand-intake
imMamdouhaboammar
The setup step every other skill in this pack reads.
SkillAFreshness: A★ 33Claude Code +9 - 0.533score
animated-chart
imMamdouhaboammar
Make a looping animated chart for LinkedIn or a newsletter in code with Claude Code.
SkillAFreshness: A★ 33Claude Code +9 - 0.533score
apple-launch-film
imMamdouhaboammar
Rebuild an Apple-style Mac launch film entirely in code with Claude Code.
SkillAFreshness: A★ 33Claude Code +9
Signals
- Stars
- 33
- Forks
- 14
- Open issues
- 3
- Last commit (this folder)
- Oct 1, 2026 (27 days ago)
- Last release
- Oct 2, 2026 (26 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from imMamdouhaboammar
- 0.537score
video-review-loop
imMamdouhaboammar
Use when a rendered motion video, MP4, MOV, reel, promo, title sequence, or final export must be reviewed from recorded video evidence before signoff.
SkillAFreshness: A★ 33Claude Code +9 - 0.537score
paper-cut-motion
imMamdouhaboammar
Create tactile stop-motion paper-cut and collage sequences with deterministic 12 fps stepped motion, physical layering, paper shadows, stamps, pins, and…
SkillAFreshness: A★ 33Claude Code +9 - 0.537score
text-to-lottie
imMamdouhaboammar
Create, edit, or fix Lottie/Bodymovin JSON animations for the local Skia Skottie player.
SkillAFreshness: A★ 33Claude Code +9 - 0.537score
speech-to-text
imMamdouhaboammar
Directs the agent to use faster-whisper as the high-accuracy speech-to-text / Voice-over transcription engine.
SkillAFreshness: A★ 33Claude Code +9 - 0.537score
motion-director
imMamdouhaboammar
Master motion-graphics director for concept, art direction, timing, production, review, and rendering across brand films, event promos, title sequences…
SkillAFreshness: A★ 33Claude Code +9 - 0.537score
assetseeker
imMamdouhaboammar
Search free commercial-use creative assets across multiple online sources - photos, illustrations, icons, video footage, music, sound effects, and fonts.
SkillAFreshness: A★ 33Claude Code +9
Cite this page
tonejs skill. Agent Mart. https://agentmart.dev/skills/immamdouhaboammar-tonejs (last updated 2026-10-24)