The Making of a Mosquito.JS
summary
Build uses the Web Audio API: oscillator node + gain node wired into an AudioContext, with sawtooth set around 750Hz (and notes about 10,000Hz for dog-only tones). Detune drives a bespoke “mesquite engine” that moves frequency forward 50% backward 25% static 25% and adds a small random push, plus a stereo panner for left/right triangulation. Implementation detail: oscillator nodes can’t be restarted after stop so code disconnects/recreates nodes and adds a clap sample to audibly terminate the bug.
AI-written summary · about








