Skip to content

Feature Map ​

This page is the top-level map of libsonare. Start here when you know the task but not yet which runtime, API page or implementation note to open. For a first tutorial, read Learning Path instead; this page covers the whole API area.

Choose one task, then follow its row to the right runtime and guide.

If you need to...Read...
Find whether a feature existsFeature Families
Find a call's name in each bindingNames by Binding
Read a build's processors, parameter bounds and presets as dataCapability Catalog
Choose a runtimeRuntime Entry Points and Binding Parity
Understand DSP behavior and limitsDSP Implementation Notes
Check algorithm or paper basisAlgorithm References
Check test coverage and validation statusImplementation Validation
Terms used on this page
  • Runtime is where the code runs: browser, Python, CLI, Node or C++. API is the functions and classes you call. Binding is the layer that lets another language call the same C++ core. Choose one runtime first and read only its API page.
  • A feature is a numeric summary extracted from audio, not the audio itself. MIR (Music Information Retrieval) is reading BPM, key, chords and beats from music. DSP (Digital Signal Processing) is measuring or transforming audio signals.

Runtime Entry Points ​

The core math lives in C++. Browsers reach it through WASM, Python through a package, and terminal workflows through the CLI. Pick the runtime that matches where your app runs and read only that API page first.

RuntimePackage or headersMain docs
Browser / Node WASM@libraz/libsonare plus worklet subpathsWASM, JavaScript API
Python / CLIpip install libsonarePython API, CLI
Node native@libraz/libsonare-native source buildNative Bindings
C++sonare.h, module headersC++ API
C ABIsonare_c.h plus module headers such as sonare_c_acoustic.hC ABI, Binding Parity

Feature Families ​

Feature families group APIs by the job they do, ordered by task. If you do not know an exact function name yet, start here.

Acronyms in the tables
  • STFT: short-time Fourier transform, the basis of spectrograms. See Spectrogram and STFT.
  • MFCC: compact timbre features often used for ML and classification. See Mel, MFCC, and Timbre.
  • CQT / VQT: frequency transforms aligned with musical pitch spacing. See Spectrogram and STFT.
  • NNLS: non-negative least squares. NNLS chroma fits each frame's log-frequency spectrum against fixed harmonic note templates and keeps only non-negative note amounts. See Chroma Features.
  • NMF: non-negative matrix factorization, which learns both a set of spectral parts and how strongly each one sounds over time. See Source Separation.
  • PLP: a feature that estimates the main rhythmic pulse.
  • LUFS / LRA: loudness and loudness-range metrics. See LUFS.
  • VCA: a group control that moves several strip levels together. See Buses and Sends.
  • PFL / AFL: pre-fader listen and after-fader listen, the two cue taps for auditioning a single track. The live process() output folds an armed cue in; offline renders, bounces and freezes never include it.
  • RIR: room impulse response. See Room Geometry and Volume.
  • Equivalent-room estimation: fitting a practical room model from audio. See Inverse Room Estimation.
  • Room morphing: applying a target-room character as an effect.

Analyze ​

FamilyWhat is coveredMain pages
AnalysisBPM, key and key candidates, beats, downbeats, onsets, chords and chord functions, sections, melody, timbre, dynamics, rhythm, measured tuningJavaScript API, Python API, C++ API
Meter estimationTime signature, downbeat phase and accent grouping scored over a beat series you already hold; takes no audioMeter and Grouping
FeaturesSTFT, mel, MFCC, chroma, CQT/VQT, tempograms, PLP, spectral and pitch features, NNLS chroma, NMF decomposition, LUFS/LRAJavaScript API, librosa Compatibility
MeteringLevel, loudness, crest-factor, true-peak and DC-offset meters; clipping and dynamic-range reports; stereo correlation and width; vectorscope, phase-scope and spectrum snapshotsJavaScript API, Python API, Native Bindings
Structure and segmentationCross-similarity, recurrence and lag matrices, path enhancement, sub-segmentation, agglomerative clustering, note segmentation from an F0 trackJavaScript API, Python API
Streaming MIRLive mel, chroma and onset frames; BPM, key and chord estimates that update over time; chord progression and pattern scoresRealtime and Streaming, WASM
Audio to notesMonophonic and polyphonic transcription to a MIDI clip, the polyphonic tracker's limits, the shortest note as a note value, a measured reference pitchAudio to MIDI
Room acousticsReverberation time and clarity from an impulse response, blind and equivalent-room estimation, geometric RIR synthesis, room morphing (including a stereo morph)Room Acoustics, JavaScript API, Python API

Edit and repair ​

FamilyWhat is coveredMain pages
Effects and editingHPSS, normalize, trim, remix, time stretch, pitch shift, pitch correction (including automatic correction to a key), note editing, region-based spectral editing, voice pitch and formant changeEditing DSP, Change Tempo Without Changing Pitch, Pitch Correction, Vocal Editing, Note Editing in Audio, Spectral Editing, JavaScript API
Stem decompositionSoft-mask separation whose components keep the source's phase and sum back to the input; a linked variant for multichannel sourcesSource Separation, Inverse Features, Linked stems
RepairDetectors and repair stages for broadband noise, hum, clipping, clicks, crackle and diffuse reverb, run in one call for any channel count; decrackle, dehum and the classical denoise and dereverb stages are also realtime insertsAudio Repair Workflow, Repairing Noise and Hum, Repairing Clipping, Clicks, and Crackle, Repairing Diffuse Reverb
Aligned remix intervalsCut points resolved once, snapped to zero crossings, so every channel of a take is sliced on the same frames. API only, no CLIJavaScript API, Python API
Stereo normalizationPeak or RMS normalization of a left/right pairJavaScript API, Python API
Scale quantizationSnap MIDI notes to a scale, measure the correction in semitones, test pitch-class membershipJavaScript API, Python API
Inverse featuresMel to STFT or audio, MFCC to mel or audio, CQT/VQT magnitude to audioInverse Features

Master and mix ​

FamilyWhat is coveredMain pages
MasteringPresets, full chains, named processors and their metadata, pair processors and analyses, A/B loudness and EQ match, stereo analyses, a streaming chain, a structured multiband compressorMaster Audio, Mastering Processors, DSP Implementation Notes, Algorithm References, Mastering Demo Implementation
Mastering assistantSource audio profile, chain suggestion JSON and streaming-platform preview JSON, with stereo counterparts that measure a left/right pairMastering Assistant
MixingChannel strips, buses, sends, VCA groups, scene presets, automation, stereo and surround pan, meters, goniometer, offline renderingMixing Engine, Mixing Scene JSON, Mixing on the Realtime Engine
Mixing assistantMeasures a set of tracks and returns a mixer scene with a written reason for every decision; it never applies the sceneMixing Assistant

Projects and instruments ​

FamilyWhat is coveredMain pages
Projects and arrangementAudio and MIDI tracks and clips, undo/redo, takes and comping, warp, MIDI sequencing, SMF and MIDI 2.0 Clip File import/export, JSON save/load, offline bounceProject Editing, Project MIDI, Project Save & Load, Project Bounce, Recording and Loop Takes, Comping Takes
Instruments and MIDIMulti-engine synth with a GM fallback bank, parameter descriptors, live program change, GS-compatible SoundFont 2 player, live MIDI playback, GS insertion effects (EFX)Built-in Instruments, SoundFont 2 Player, MIDI Input, MIDI Editing, MIDI 2.0 & UMP

Play and render ​

FamilyWhat is coveredMain pages
Realtime engineTransport, tempo, markers, metronome, automation lanes, clips and the MIDI clip schedule, a per-track lane mixer, external MIDI output and clock, capture, PFL/AFL cue monitoring, meter and scope telemetry, offline render, bounce and freezeRealtime Engine, Parameter automation, Voice budget, Realtime and Streaming
Audio loadingDecoded-sample entry points and Audio.fromMemory*; every source channel kept and folded by the ITU-R BS.775 rule; on WASM, browser decoding and Origin Private File System clipsJavaScript API, Channel Formats, WASM

Reference and introspection ​

FamilyWhat is coveredMain pages
Utility / librosa parityFrame, sample and time conversions, dB conversion, pre/de-emphasis, silence trim and split, peak pick, PCEN, tonnetz, test-signal generationlibrosa Compatibility
Build introspectionMachine-readable capability catalog (processors, parameter bounds and defaults, preset lists) and a build-diagnostics reportCapability Catalog, JavaScript API, Python API, CLI

This page says what exists, not how evenly each runtime exposes it. Binding Parity has the per-domain breakdown.

Implementation And Evidence Pages ​

PageRole
Mastering ProcessorsPublic registry of preset names, processor IDs, pair processors, pair analyses, and stereo analyses
DSP Implementation NotesWhat each DSP family does internally, including real-time boundaries and shared building blocks
Algorithm ReferencesStandards, papers, algorithm families, and compatibility references that are visible in source, tests, or README
Implementation ValidationTest and validation map for feature groups, including librosa reference checks and real-time safety notes

WASM Export Families ​

This section is for readers who need to verify implementation details or exact public exports. If you only want to get a browser app running, it is enough to import what you need from @libraz/libsonare and call init() before using it.

The main @libraz/libsonare TypeScript package exports fall into a few groups: initialization and ABI checks, a capabilities() query, the audio-processing functions (analysis, effects/editing, mastering, mixing, feature extraction, inverse features, conversion helpers), and the stateful object APIs (Audio, StreamAnalyzer, Mixer, RealtimeEngine, and the streaming/voice-changer classes). The full, current export list is mirrored in JavaScript API, generated from bindings/wasm/src/index.ts in the libsonare repository — treat that TypeScript entry point as the authoritative reference.

What the ABI-version functions are for

abiVersion, engineAbiVersion, projectAbiVersion, and voiceChangerAbiVersion report the binary interface version each subsystem was built against. Compare them against the version your code expects to catch a mismatched or stale WASM build before you rely on its objects. Every binding also checks the loaded native module's aggregate ABI version itself when it loads (0x06040308, read with abiVersion()) and refuses a mismatch with the error code AbiMismatch (10): Node when the addon is required, WASM in init(), Python on first library use.

The same npm package also exports @libraz/libsonare/worklet for the AudioWorklet bridge, @libraz/libsonare/wasm (and @libraz/libsonare/wasm/analysis for the analysis-only module) for bundlers or custom loaders that need the raw WASM asset. Installation lists every subpath.

CLI Command Families ​

The CLI is the entry point when you want to point libsonare at files without writing a program. It is useful for automation and validation, but JavaScript / Python / C++ APIs are better for realtime UI or fine interactive control.

Two CLIs exist, the Python CLI and the source-built C++ CLI, and they share one command set; they differ only in how they are installed. The full, current command list with examples lives in CLI; see Binding Parity for the runtime differences.