MagicBPM SDK

Real-time tempo detection,
on-device.

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

A focused DSP engine, not a dependency tangle.

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.

On-device & offline

All analysis runs locally with no network calls. Nothing about the audio ever leaves the device — ideal for privacy-sensitive and offline-first apps.

Low latency

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.

Dual-engine accuracy

vDSP autocorrelation over an onset-detection function, combined with an onset/inter-onset-interval peak-picker, merged for robustness across genres and noisy rooms.

Any audio source

A simple provider protocol means you can feed the live microphone, your own audio engine tap, or pre-recorded buffers for offline analysis.

Tunable

Expose tempo range, detection mode, and gating to your users — or lock sensible defaults. The same controls that ship in the MagicBPM app.

Native Swift

A modern Swift framework for Apple platforms. Apple-first by design — no cross-platform abstraction overhead.

Where it fits

Built for anything beat-aware.

🎧

Music & DJ apps

Auto-detect tempo for sync, looping, and beat-matched effects.

🏃

Fitness & running

Match workout cadence or coaching cues to the music in the room.

🎮

Games & AR

Drive rhythm gameplay and reactive visuals from live audio.

🎹

Instruments & practice

Give players an accurate tempo readout while they perform.

🎬

Creator tools

Tag clips with tempo for editing, transitions, and auto-cuts.

🔬

Research & analysis

Run the live detector offline over recorded audio for batch tempo analysis.

Get in touch

Tell us what you're building.

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.

SDK inquiries

We read every message and usually reply within a couple of business days.

[email protected]