Impact
Collisions and hits · one-shot
A descending body and filtered noise transient. Intensity changes pitch, brightness, and level.
Impact: ready
Take this sound.
Current parameters and seed. Mixer settings are separate.
import { createAudio } from "audiobits";
import { impact } from "audiobits/recipes";
const audio = createAudio();
const sound = audio.sound(impact);
// Bind directly to a button click; surface a failed start and allow retry.
export async function play() {
await audio.start();
sound.play({ parameters: {"intensity":0.5}, seed: 42 });
}
Production lifecycle