Procedural 8-bit audio for arcade-style sound effects, generated in real time with the Web Audio API.
npm install bleepsimport { ArcadeSounds } from "bleeps"
const arcade = new ArcadeSounds({ volume: 0.5 })
// Call init inside a user gesture (click/tap) to unlock audio
button.addEventListener("click", async () => {
await arcade.init()
arcade.shoot()
})import { Bleeps, DEFAULT_AUDIO_CONFIG } from "bleeps"
const config = {
...DEFAULT_AUDIO_CONFIG,
MASTER_VOLUME: 0.3,
}
const bleeps = new Bleeps({ config })
await bleeps.init()
bleeps.play((audio) => audio.playCoin())ArcadeSoundswithshoot,explosion,hit,levelUp,step,ufo,powerUp,coin,gameOverBleepscore wrapperAudioSystemlow-level Web Audio engineSimpleAudiotiny beep helperDEFAULT_AUDIO_CONFIGand config types
MIT