MagicBPM SDK
The same dual-engine beat detector that powers the MagicBPM app — available to license as a native iOS framework. Feed it audio, get a confident BPM. No servers, no latency tax, no data leaving the device.
Overview
MagicBPM's detector is a self-contained Swift framework with a clean input boundary: push audio samples in, receive running and per-beat BPM out, along with a stabilizing/confidence signal. It's built entirely on Apple's Accelerate/vDSP and SIMD — zero third-party dependencies.
All analysis runs locally with no network calls. Nothing about the audio ever leaves the device — ideal for privacy-sensitive and offline-first apps.
Designed for live input. Audio is processed off the main thread on a dedicated queue, with an allocation-free hot path for steady, real-time readings.
vDSP autocorrelation over an onset-detection function, combined with an onset/inter-onset-interval peak-picker, merged for robustness across genres and noisy rooms.
A simple provider protocol means you can feed the live microphone, your own audio engine tap, or pre-recorded buffers for offline analysis.
Expose tempo range, detection mode, and gating to your users — or lock sensible defaults. The same controls that ship in the MagicBPM app.
A modern Swift framework for Apple platforms. Apple-first by design — no cross-platform abstraction overhead.
Where it fits
Auto-detect tempo for sync, looping, and beat-matched effects.
Match workout cadence or coaching cues to the music in the room.
Drive rhythm gameplay and reactive visuals from live audio.
Give players an accurate tempo readout while they perform.
Tag clips with tempo for editing, transitions, and auto-cuts.
Run the live detector offline over recorded audio for batch tempo analysis.
Get in touch
Email us about licensing, integration, and pricing. A short note about your app and how you'd use real-time tempo detection is all we need to start.
We read every message and usually reply within a couple of business days.
[email protected]