How the Audio Loop Pad Works
AnyTool builds beats entirely in the browser with the Web Audio API. Bundled royalty-free drum one-shots are decoded once into AudioBuffers and triggered through per-track gain (velocity), pan and optional reverb/delay. A lookahead scheduler (the "A Tale of Two Clocks" pattern) schedules each active step ahead of time against the audio clock for sample-accurate, seamless looping at any BPM with swing, and live finger-drumming is captured at the audio clock and quantized to the grid with a metronome count-in. Export rebuilds the pattern in an OfflineAudioContext across the chosen loop count; WAV is written instantly via Web Audio encodeWav, and a self-hosted single-threaded ffmpeg.wasm engine (bundled core, no CDN) encodes MP3/M4A/OGG/FLAC with an optional -14 LUFS master. Per-track WAV stems and a Type-0 MIDI file are also exported.
- Runs client-side — samples and loops are never uploaded
- Sampled drum kits + 16-step sequencer on a lookahead clock
- Quantized live recording with metronome and swing
- Self-hosted ffmpeg core (bundled) — no CDN
- Instant WAV; MP3/M4A/OGG/FLAC plus WAV stems
- MIDI export to take into any DAW
