Audio pitch variance and ducking
three.js and WebGL · Sound you can see · MIT
- What it does
Vary each playback's pitch by plus or minus 6 percent from a seeded generator so repeats do not sound machine-made, and duck the bed under an impact. Code is in the reference page, written for the starter but free of dependencies.
- Get it
audio.play(buffer, rng, 0.8); audio.setDuck(0.6);
- Needs (the whole pack)
Nothing to read the skills. To run what they build: Node and npm, Python 3 for the helper scripts, and Chromium through Playwright for the inspector and tests. Optional and paid: Tripo, Gemini and ElevenLabs keys for the three generator skills.
- License
MIT
- From