p5.sound
p5.js add-on bringing the Processing approach to Web Audio: playback, effects, synthesis and analysis.
| Language | JavaScript |
|---|---|
| Category | Web Audio |
| License | MIT |
| Platforms | Web |
| Install | Bundled with p5.js (npm install p5) |
| First released | ~2014 |
| Maintained | Yes |
| Links | Website · Source |
Strengths
- Beginner-friendly, integrates with p5.js sketches
- Covers input, playback, effects, synthesis, analysis
Limitations
- Classic repo sunset in 2023 and superseded
- Tied to the p5.js ecosystem
Best for
Adding accessible sound to creative-coding p5.js sketches.
Minimal example
let osc = new p5.Oscillator('sine');
osc.freq(440); osc.amp(0.5); osc.start();