Noise burst.
Trigger short white, pink, or brown noise bursts and watch the waveform and spectrum canvases react.
Use this in a React component.
Keep playback inside a user action. The provider creates AudioContext lazily and routes playback through the safe graph.
import { AudioProvider, useNoise } from "@webaudio-kit/react";
function NoiseButton() {
const noise = useNoise({
type: "pink",
durationMs: 800,
gain: 0.08,
});
return (
<>
<button onClick={() => void noise.play()}>Play pink noise</button>
<button onClick={noise.stop}>Stop</button>
</>
);
}
export function App() {
return (
<AudioProvider>
<NoiseButton />
</AudioProvider>
);
}Run the focused surface.
Each page keeps one primary workflow near the snippet, then leaves the full workspace below for broader testing.
Full workspace preview
This original demo page keeps the complete tone, sweep, noise, and test-mode workspace visible after the snippet.
Try every control together.
Use the shared workspace when you want tone, sweep, noise, test mode, volume, pan, waveform, and spectrum controls on one screen.
Play a tone. Sweep a range. Burst noise.
Uses the current waveform, gain, pan, master volume, and analyser route.
Noise buffers use the same safe routing: source, gain, pan, master volume, analyser, then destination.
A short low-gain sequence checks center tone, stereo pan, sweep, noise, and analyser routing without making medical claims.
- Center tone320ms
- Left pan320ms
- Right pan320ms
- Short sweep700ms
- Pink noise450ms