LIBSONAREDependency-free audio engine

Apache-2.0 · Zero runtime dependencies · WebAssembly

From analysis to arrangement: a dependency-free audio engine.

librosa-compatible analysis, broadcast-grade mastering and mixing, built-in instruments, and a realtime headless-DAW runtime — for C++, Python, and the browser. The same engine runs native and WASM: no Python runtime, no GPL/AGPL, no model weights.

$npm install @libraz/libsonareNPM
$pip install libsonarePYPI
LICENSEAPACHE-2.0RUNTIMEC++17TARGETSLINUX · MACOS · WASMPACKAGESNPM · PYPIDEPSZERO RUNTIME
WASM1070 KB gzip / 2986 KB rawBUILD2026-06-27 · 434fe06

Try it locally

Eight demos. One library.

Every demo runs the same Apache-2.0 processors locally in your browser via WebAssembly.

Browse all demos

Use it in your code

One library, three runtimes. Pick a task, then choose where it runs.

import { init, detectBpm, detectKey, analyze } from '@libraz/libsonare'

await init()

const bpm = detectBpm(samples, sampleRate)
const key = detectKey(samples, sampleRate)   // { name: "C major", confidence: 0.95 }
const result = analyze(samples, sampleRate)

What ships in the box

An audio engine, not a service

01 ANALYSIS

Deep MIR analysis for music tools.

BPM, key, chords with Viterbi/HMM smoothing, beats, downbeats, time signature, sections, timbre, dynamics, YIN/pYIN pitch, tempogram/PLP, NNLS chroma, LUFS, room-acoustic estimates, and geometric room tools. Defaults are validated against generated reference values in CI.

Feature map →
02 MASTERING & MIXING

Broadcast-grade mastering and real-time-safe mixing.

76 named mastering DSP processors against published references — loudness, true peak, crossovers, clippers, tube saturation, oversampling — plus a real-time-safe mixer with channel strips, buses, sends, metering, scene presets, editing DSP, and creative FX.

Mastering processors →
03 INSTRUMENTS & DAW

Built-in instruments and a headless-DAW runtime.

A 7-engine synth with a data-free GM fallback bank and a GS-compatible SoundFont 2 player — MIDI never renders silent. Author projects with audio and MIDI tracks, undo/redo, MIDI sequencing, SMF import/export, offline bounce, and a sample-accurate realtime engine that runs in the browser via AudioWorklet.

Built-in instruments →

Run the same DSP everywhere.

C++, C, Python, Node, WASM, and CLI under one Apache-2.0 license.