Capability Catalog
This page documents the JSON document a build returns about its own processors: which surfaces return it, what each parameter descriptor holds, and what a host can build from it. For where it sits among the other API families, see Feature Map.
The build can describe its own processor surface. capabilityCatalog() on Node and WASM, capability_catalog() on Python, and sonare_capability_catalog_json on the C ABI return the same JSON document: the build's version and ABI numbers, every named processor with its parameters and slot metadata, the built-in preset name lists, and mastering-preset metadata. In the catalog, a member the JSON document writes as null is absent (undefined) on Node and WASM and None in Python. Neither CLI exposes it; doctor prints the separate build-diagnostics report.
The current build publishes about 95 processors and over 5,300 parameter descriptors; most of the processors are realtime-insertable, and every processor reports a category. The exact counts change with each release, so count them from the document itself rather than from this page: the libsonare repository tracks the generated document as tools/capability-catalog.json, make capability-catalog-check fails when that file drifts from what the shared library actually answers, and schemas/capability-catalog.schema.json fixes the shape.
Processor Entry Fields
processors holds one entry per named processor, realtime inserts and offline stages alike. Every entry carries the same fields; realtimeCost is absent (null in the JSON document) where the processor is not an insert, and offlineParams only where it applies.
| Field | What it holds |
|---|---|
id | The processor id: the name used for scene inserts and named processors, such as dynamics.compressor |
description | Human-readable summary of the processor |
kind | realtime for an id that builds as a realtime scene insert, offline for a whole-file-only processor, pair for a two-input match.* processor; where more than one fits, pair wins over realtime, which wins over offline |
forms | Every way the id runs, realtime first: realtime when it builds as a scene insert, offline when it runs over a whole file. Inserts list both; the match.* ids and the offline-only processors list offline alone |
realtimeInsertable | true exactly for the ids that always build as a realtime scene insert |
stereoOnly | true for a processor with no mono implementation (eq.midSide, multiband.imager and the stereo-family processors that need true left and right channels) |
latencySamples, tailSamples | Latency and audible decay for a representative probe at 48 kHz and 512 samples, both 0 for an offline processor. Configuration-dependent values are estimates; masteringInsertTiming answers for one configuration |
realtimeCost | A coarse work estimate, low, moderate or high, not a benchmark; absent when the processor is not an insert |
channelPolicy | How the mixer wraps the processor on a bus wider than stereo: multichannel runs every plane in one call, stereoPairOnly processes the front left/right pair and passes the other planes through dry. perChannel and passthrough are reserved and unused |
category | The picker grouping, taken from the id's prefix: dynamics, effects, eq, final, reference (the match.* processors), maximizer, multiband, repair, saturation, spectral, stereo, utility or voice; an id with no recognised prefix would read other, and the current build has none |
causal | true when some configuration has an output at each sample that depends only on earlier input plus the reported latency: every realtime-insertable processor and the four causal repair stages (repair.decrackle, repair.dehum, repair.denoiseClassical, repair.dereverbClassical). false for repair.declick, repair.declip and repair.trimSilence, and for the offline-only processors that are not inserts (final.*, match.*, maximizer.loudnessOptimize) |
params | The construction parameters as descriptors: for an insert the list masteringInsertParamInfo returns, for a repair.* stage the bounds its own validation enforces (no id, never rtSafe), and empty for every other offline entry |
offlineParams | Present only when the whole-file form takes different parameters from params: repair.decrackle, repair.denoiseClassical and saturation.ampSim in the current build |
slots | The conditional key groups of an insert, in declaration order, named by each parameter's slot; empty for an entry that is not an insert |
Parameter Descriptor Fields
In the JSON document, every parameter descriptor carries the same 22 fields. Where the table says null, Node and WASM leave the member out and Python gives None; eight of them (name, rtSafe, type, minExclusive, maxExclusive, scale, dependsOn, coupledWith) are always present there, and the other fourteen are absent when they have no value. masteringInsertParamInfo({ insert }) returns the same descriptors for one insert, and nothing on that page redefines them.
| Field | What it holds |
|---|---|
name | The key construction reads, such as releaseMs or band0.frequencyHz |
id | The integer id used by Mixer insert automation and MIDI-CC binding, or null for a construction-only key; realtime insert setters resolve the parameter by name, and non-null ids run 0..n-1 in automation order |
rtSafe | Whether the value can be changed live from the audio thread |
type | number, boolean, enum, string, or array, taken from the value the config builder reads |
default | The config struct's field initializer when the builder has one; null means there is no fallback value |
min, max | The interval construction accepted when probed, or null when the catalog knows of no limit on that side |
minExclusive, maxExclusive | Whether the bound itself is rejected; false when that bound is null |
maxRelativeTo | 'nyquist' when the effective ceiling is the lower of max and the host's Nyquist, otherwise null |
unit | The unit the processor declares for the key, from a closed set: dB, dBFS, dBTP, LUFS, Hz, ms, s, samples, m, cm, mm, deg, percent, degC, V, inPerSec, dBPerOct, semitones, cents, ratio, bits, count, N, midiNote, bpm, none. It is null for the boolean, enum, string, and array keys, which have no unit |
uiMin, uiMax | The range a control should draw, inside min / max, or null when the accepted range is also the display range |
scale | The axis a control draws the value on: linear or log |
choices | A closed set of named numeric choices, including discrete numeric values with gaps, or null when no closed set is published |
slot | The processor slot group that owns the key, or null when the key belongs to no group |
dependsOn | The sibling keys whose live value bounds this one, each as { key, relation, factor } with relation one of lt, le, gt, ge read as this <relation> factor * sibling (factor is 1 for a plain ordering); empty for an independent key |
coupledWith | The other sibling keys, beyond dependsOn, that move this key's accepted range in a way a single relation cannot state (for effects.reverb.room, receiverSpacingM is coupled to lengthM, widthM, listenerX, listenerY, sourceX and sourceY); empty for an independent key. min / max are measured with these siblings at their defaults |
domainMin, domainMax | Only on a number key with a non-empty coupledWith and no choices: the key's own limits with the coupling set aside, absent on a side the coupling alone bounds (receiverSpacingM has the domain (0, 4] m, while its max of 2.5 m is what fits the default room). Absent on every other key |
domainMinExclusive, domainMaxExclusive | Beside the domain limits: whether that limit is itself refused; false when the limit is absent |
Entries with a non-null id are automation targets; construction-only entries have id: null and rtSafe: false. An rtSafe: false entry must not be scheduled for live automation even when it has an id. choices describes a closed named numeric set, including discrete numeric values with gaps. slot identifies the slot group a key belongs to; null means that it belongs to no slot. A non-null slot is not necessarily conditional: each processor's slots array supplies the group's activation (anyKey or always), its parent slot when nested, and any minCrossoverCutoffs requirement that determines when the group is present.
Reading a bound
An absent bound is not missing data: it states that the catalog knows of no limit on that side. The values come from different places, and that decides how far a host can trust them:
| Field | Where it comes from | Reading it |
|---|---|---|
default | The processor config struct's own field initializer, recorded as each builder falls back to it | A changed initializer cannot leave a stale number behind. |
min, max, minExclusive, maxExclusive | Measured: candidate values go through the same construction path a caller uses, and the catalog reports the accepted interval, rounded inward | Each bound is measured with the other keys at their defaults. |
coupledWith | Measured: the siblings, beyond dependsOn, that move a key's accepted range (the room reverb's receiverSpacingM against the room size and placement) | A control for such a key re-reads its bound when one of them changes. |
unit, scale, uiMin, uiMax, dependsOn | Declared by the library; a dependsOn entry reads this <relation> factor * sibling | On a logarithmic axis uiMin ?? min is positive and uiMax ?? max finite (an absent display end, undefined in JS, means the accepted bound is already usable). A bound that only restates a dependsOn entry at the sibling's default is left out for the dependency to carry. |
uiMin / uiMax, dependsOn and coupledWith describe how to draw and order a control; the accepted range stays min / max. A control that constrains another reports the other's default, and an exclusive bound is reported as the value it excludes. JavaScript API walks through the concrete cases.
A bound is a hard constraint, not a recommended range
min and max describe what the processor will accept. They are not a musically sensible range to sweep a control over: a value inside the interval can still be a bad setting, and a value outside it is rejected.
Coupled keys and domains
A key whose range moves with siblings that dependsOn cannot express lists them in coupledWith, and its min / max are measured with those siblings at their defaults. On such a number key domainMin / domainMax carry the key's own limits with the coupling set aside, so a control can tell a value no room accepts from one this room refuses: the receiver spacing of effects.reverb.room has the domain (0, 4] m, while its max of 2.5 m is what fits the default room. A value inside the domain can still be refused by the relation; a control for a coupled key re-reads the bound whenever a sibling changes (Build Controls from Parameter Descriptors).
A ceiling that follows the sample rate
A frequency key bounded by the processing rate publishes maxRelativeTo: 'nyquist' together with a max that holds at the default rate. Pass the session rate to masteringInsertParamInfo to get the ceiling that applies there:
const band = (rate?: number) =>
masteringInsertParamInfo({ insert: 'eq.parametric', sampleRate: rate }).find((p) => p.name === 'band0.frequencyHz')!;
band().max; // 24000 (exclusive)
band(44100).max; // 22050 (exclusive)
band(96000).max; // 48000 (exclusive)What an absent bound and a default do not tell you
An absent bound means construction did not refuse, not that any value is meaningful. Construction-only descriptors can publish bounds when their validation exposes them, while string and array keys generally publish none. saturation.overdrive.levelDb publishes no min, and construction accepts -1000. The catalog measures what construction rejects; a processor that folds a value instead of rejecting it reports no bound, so a range check against an absent bound rules out only one kind of mistake. Read an absent bound as "no validation to lean on", and take the sensible range from the parameter's meaning and unit.
The finite bounds are acceptance limits. saturation.bitcrusher.bitDepth publishes min: 2 and max: 24, and values outside that interval are rejected. Some gain fields also reject values whose dB-to-linear conversion is non-finite; a large measured upper bound is still an implementation limit, not a useful control range.
A default is the config struct's initializer, and a preset is under no obligation to hand it to you. A construction-only descriptor can have no default when there is no fallback, while a preset or scene can supply that key explicitly. A control surface that initialises from default alone can show the wrong value for a loaded scene. Initialize from the scene's own params, fall back to the catalog default only for keys the scene does not carry, and treat a missing default as a value that still needs an explicit scene or user choice.
Repair entries
Every repair.* entry publishes its settings the same way, measured through the stage's own validation; those rows carry no automation id and are never rtSafe, even on the four realtime repair inserts. denoiseClassical and dereverbClassical publish nFft as choices (the powers of two from 4 to 524288) and hopLength as any whole number from 1 with a dependsOn of at most half of nFft. masteringInsertParamInfo answers for every catalog id, offline repair stages included; an unknown id is refused (RangeError in Node and WASM, SonareValueError in Python, and SONARE_ERROR_INVALID_PARAMETER in the C ABI).
Chain And Preset Sections
A top-level chain section describes the flat keys of a mastering chain config. stages lists each stage's key prefix, the processor whose parameters its keys are (or null) and its enabled key; lists names the indexed lists (the multiband stage's cutoffsHz and bands) with their item counts, and also publishes the scalar cutoff family dynamics.multibandComp.cutoff{i}Hz; params holds descriptors, measured through the chain's own validator, for the keys no processor carries (the enabled switches, loudness.*, repair.denoise.gainFloor, the crossover FIR kernel size and cutoff list); and aliases gives every alternative spelling of a key. Node, WASM and Python declare it as CapabilityCatalogChain. In the TypeScript declaration stages also carries each stage's form ('offline', absent exactly where the processor is), and lists the item processor's form, minItems and maxItems: dynamics.multibandComp.crossover.cutoffsHz takes 1 to 63 items and dynamics.multibandComp.bands 2 to 64, each item the dynamics.compressor fields. Chain enum names resolve on every stage's keys. Building a stage panel from catalog.chain is walked through in Build Controls from Parameter Descriptors. presets also carries playbackRoom, always present and empty when playback is compiled out.
The presets.mastering array remains the compact list of mastering preset names. The top-level masteringPresets array adds one object per name with kind, targetLufs, truePeakCeilingDbtp, and maxLimiterGainReductionDb; restoration entries carry none of those three numeric fields. Use masteringPresetParams on the binding when you need the parameter map for a selected preset.
What To Use It For
Two things the descriptor is good for:
- A control surface without a hand-maintained table. Lay out each parameter from its
type,default,min,max,uiMin,uiMax,scale, andunit, and a new processor or a renumbered band shows up in the UI when the build changes, not when someone edits a spreadsheet. - Checking a value before it crosses the boundary. A number outside a published bound is refused by name when the insert is constructed, configured or automated; it is never clamped. Every effects insert parameter, the room inserts'
materialPreset(0 to 5) and the equalizer band frequencies publish the range they refuse outside of. Testing it against the catalog first turns that runtime error into a validation message at the point the user typed the value.
const catalog = capabilityCatalog();
const limiter = catalog.processors.find((p) => p.id === 'dynamics.brickwallLimiter');
const release = limiter?.params.find((p) => p.name === 'releaseMs');
function accepts(value: number, sampleRate: number): boolean {
if (!release) return false;
const { min, max, minExclusive, maxExclusive, maxRelativeTo } = release;
// 'nyquist' caps the ceiling at half the host sample rate
const ceiling = max !== undefined && maxRelativeTo === 'nyquist' ? Math.min(max, sampleRate / 2) : max;
const aboveMin = min === undefined || (minExclusive ? value > min : value >= min);
const belowMax = ceiling === undefined || (maxExclusive ? value < ceiling : value <= ceiling); // absent: no limit published
return aboveMin && belowMax;
}
accepts(5000, 48000); // true: releaseMs publishes no max
accepts(-1, 48000); // false: below its min of 0The catalog describes the surface from the outside: which processors exist and what each accepts. Why a processor has the same id in every runtime is the layering described in Architecture.