LIBSONAREAudio engine with a dependency-free C++ core

Apache-2.0 · Dependency-free C++ core · WebAssembly

From analysis to arrangement, powered by a dependency-free C++ core.

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

$npm install @libraz/libsonareNPM
$pip install libsonarePYPI
LICENSEAPACHE-2.0RUNTIMEC++17TARGETSLINUX · MACOS · WASMPACKAGESNPM · PYPICORE DEPSZERO RUNTIME
WASM1376 KB gzip / 4059 KB rawBUILD2026-08-18 · 8c5c637b

Try it locally

Nine demos. One library.

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

Browse all demos

LIVE FULL DAW · LIBSONARE AUDIO ENGINE

sonare studio

A full DAW in your browser

A complete client-side workstation: sequencing, piano roll, score engraving, a mixer, mastering, and WAV/MP3/MIDI/MusicXML export. libsonare is its audio engine — playback, mixing, mastering, the built-in instruments, and WAV/MP3/MIDI export — while score engraving, MusicXML, and music theory come from separate libraries. It shows how far the audio engine reaches inside a real DAW.

Hosted live demo · source not public · not a production product.

Open sonare studio

sonare-studio.libraz.net

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.

88 named DSP processors in the capability catalog, including 76 solo mastering processors plus pair and creative-insert APIs — loudness, true peak, crossovers, clippers, tube saturation, oversampling — alongside a real-time-safe mixer with channel strips, buses, sends, metering, scene presets, and editing DSP.

Mastering processors →
03 INSTRUMENTS & DAW

Built-in instruments and a headless-DAW runtime.

A 15-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.