Audit Web Audio API code for procedural sound synthesis quality, UX decisions, and parameter best practices.
Real-world examples
Live HTML demos for this skill — rendered directly in the page. 4 examples.
- 01
Single context & cleanup
One shared AudioContext, resume when suspended, disconnect nodes onended — vs creating a new context per click and leaking nodes.
- 02
Exponential envelope
setValueAtTime then exponentialRampToValueAtTime(0.001) for natural decay — A/B against linear ramps and illegal zero targets.
- 03
Filtered noise click
8ms noise burst through a 4kHz bandpass (Q≈3, gain≤1) — crisp UI tap vs a tonal sine beep that fails design-noise-for-percussion.
- 04
Pitch-sweep confirmation
Oscillator with exponential frequency sweep for tonal UI confirms — vs a static-frequency beep that ignores design-oscillator-for-tonal.
More from raphaelsalaja
- 12 Principles Of AnimationApply Disney's 12 animation principles to web interfaces to make motion feel natural, organic, and human.
- Mastering Animate PresenceAudit Motion and Framer Motion exit/presence patterns with practical fixes for AnimatePresence usage.
- Morphing IconsBuild icon components that morph between SVG shapes with smooth, line-based transformation.
- Pseudo ElementsAudit CSS pseudo-elements and View Transitions usage for hover effects, decorative layers, and transitions.
- Sounds On The WebAudit interface sound feedback for UX quality, accessibility, and practical implementation patterns.
- To Spring Or Not To SpringAudit animation timing choices to decide when springs versus easing curves produce better motion.