LIBSONAREAudio engine with a dependency-free C++ core

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

Turn audio into data, and data back into audio.

Analysis, mastering, mixing, built-in instruments and a DAW runtime — one C++17 engine, running natively and in the browser. Same results either way, and nothing is uploaded.

$npm install @libraz/libsonareNPM
$pip install libsonarePYPI
LICENSEAPACHE-2.0RUNTIMEC++17TARGETSLINUX · MACOS · WASMPACKAGESNPM · PYPICORE DEPSZERO RUNTIME
WASM2057 KB gzip / 6061 KB rawANALYSIS ENTRY373 KB gzipBUILD2026-09-30 · 6dadb2decf2c

Try it locally

11 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

Checked by a build: librosa parity against reference values, and each runtime’s reach against the C ABI itself.

02 ASSISTANTS

They measure, they suggest, and they say why.

The mixing and mastering assistants hand back a scene or a chain with the reason behind every change. Rule-based — no trained model, no upload — and applying the result stays your decision.

03 MASTERING & MIXING

Broadcast-grade mastering and a real-time-safe mixer.

88 DSP processors built against published references, starting with BS.1770-4 loudness and true-peak limiting. 73 of them drop straight into a realtime chain.

04 ANALYSIS & DAW

MIR analysis that ports over without surprises.

BPM, key, chords, sections, EBU R128 loudness. Where it overlaps librosa the defaults match, and CI checks them against reference values. The results feed the headless DAW and the realtime engine directly.

Run the same DSP everywhere.

C++, C, Python, Node, WASM and two CLIs under one Apache-2.0 license. How far each runtime reaches is published as a table.