JavaScript/TypeScript Types and Enumerations
Types
AnalysisResult
interface AnalysisResult {
bpm?: number; // Absent when no tempo is found.
bpmConfidence: number;
bpmCandidates: AnalysisBpmCandidate[]; // The chosen tempo first
key: Key;
timeSignature: TimeSignature;
timeSignatureCandidates: TimeSignature[]; // Ranked, best first
beats: Beat[]; // Beat objects with per-beat strength
downbeats: Beat[]; // The beats that start a measure, each also in beats[]
downbeatPhase: number; // Beat index the first measure starts on
beatObservations: BeatObservations; // Per-beat evidence, parallel to beats[]
beatLocalBpm: number[]; // Smoothed local tempo in 60–200 BPM, per beat; opt-in
chords: AnalysisChord[];
sections: Section[];
timbre: TimbreFrame;
dynamics: AnalysisDynamics;
rhythm: AnalysisRhythm;
melody: AnalysisMelody;
form: string; // e.g., "IABABCO"
tuningCents: number; // tuning the chromagrams were built with (given or measured)
}
interface AnalysisBpmCandidate extends BpmCandidate { // BpmCandidate: { bpm, confidence }
/** How this hypothesis relates to the reported `bpm`. */
relation: 'primary' | 'half' | 'double' | 'other';
}
// Beat-level evidence behind downbeat and meter decisions.
interface BeatObservations {
accent: number[]; // Maximum 5 ms RMS near each beat's strongest attack
hasAttack: boolean[]; // Empty means every beat was treated as attacked
lowFrequencyEnergy: number[]; // Empty disables masked-beat judgments
subdivisionAccent: number[]; // One midpoint value per beat interval; empty when unmeasured
chordChange: number[]; // Empty until chords are analyzed
}downbeats holds the beats that start a measure, in time order, each also present in beats: it is shorter than beats. downbeatPhase is the meter estimator's phase (the beat index the first measure starts on, in [0, timeSignature.numerator)), so the first downbeat normally sits at that beat. It is not re-derived when the downbeats are refined against chord and low-frequency evidence, so the two can legitimately disagree; the list is the result, the phase is the starting guess.
beatObservations carries the per-beat evidence used by the meter and downbeat scorers. accent, hasAttack, lowFrequencyEnergy, and chordChange are indexed by beat. subdivisionAccent has one value per interval. An empty optional stream indicates unmeasured evidence. A zero indicates measured silence. Empty hasAttack treats every beat as attacked. Empty lowFrequencyEnergy disables masked-beat scoring. Chord analysis fills chordChange. MeterEstimate.unobservedBeats lists the ascending zero-based indices of masked beats omitted from scoring. The list is empty when per-beat energy is absent.
beatLocalBpm is the smoothed local tempo at each beat, parallel to beats and in BPM. It is empty unless you asked for it with computeTempoCurve, and empty regardless when fewer than two beats were detected. Its last entry repeats the tempo of the interval leading into the final beat. It is genuine local tempo, not bpm resampled. A curve decoded from a fixed beat grid therefore describes that grid, so measuring a tempo that actually moves wants adaptiveTempo set as well. The values are continuous rather than quantized to a fixed tempo grid. Each value is a weighted local average of neighboring inter-beat intervals in log-tempo space, so a changing tempo can lag by a few beats.
bpm and timeSignature are the winners; the two *Candidates arrays are the ranked field behind them. They matter because tempo is genuinely ambiguous — a half-time feel and its double are both defensible readings of the same track. Rather than showing one number and hoping, offer the alternates:
const { bpm, bpmCandidates } = analyze({ samples, sampleRate });
const halfTime = bpmCandidates.find((c) => c.relation === 'half');
if (halfTime && halfTime.confidence > 0.4) {
offerAlternative(halfTime.bpm); // "or 84 BPM?"
}The same arrays are on the C ABI, Node, and Python.
Beat
interface Beat {
timeSec: number; // seconds
strength: number; // raw onset-envelope value at the beat's frame; unbounded
}strength is not a salience score
strength is a single raw frame of the onset envelope, sampled at the beat's frame. It is not normalized, not relative, and not bounded to 0..1: its scale depends on the material, so the same figure means different things in two tracks, and because it is one frame rather than a window it moves with any jitter in the beat position.
To score accents and decide which beats are strong, use AnalysisResult.beatObservations.accent, the windowed attack measurement the library's downbeat and meter analysis uses. Reach for Beat.strength only when you genuinely want the envelope value at that instant.
Chord
interface Chord {
root: PitchClass;
bass: PitchClass; // bass note for inversions
rootName: string; // Canonical core spelling, stable across bindings
bassName: string; // Canonical core spelling, stable across bindings
quality: ChordQuality;
startSec: number;
endSec: number;
durationSec: number; // derived from endSec - startSec
confidence: number;
name: string; // "C", "Am", "G7"
}
interface AnalysisChord extends Chord {
romanNumeral: string; // relative to AnalysisResult.key; empty for N.C.
}durationSec is derived from endSec - startSec; the core carries only the two endpoints.
Section
interface Section {
type: SectionType;
startSec: number;
endSec: number;
energyLevel: number;
confidence: number;
group: number; // sections sharing a value repeat the same material
name: string; // "Intro", "Verse 1", "Chorus"
}TimeSignature
interface TimeSignature {
numerator: number; // e.g., 4
denominator: number; // e.g., 4
confidence: number; // MeterEstimate.timeSignature: margin over the runner-up;
// MeterEstimate.candidates[]: share of summed support
}Timbre
interface TimbreFrame {
brightness?: number; // 0.0 to 1.0
warmth?: number;
density?: number;
roughness?: number;
complexity?: number;
}
interface TimbreResult extends TimbreFrame {
spectralCentroid: Float32Array;
spectralFlatness: Float32Array;
spectralRolloff: Float32Array;
timbreOverTime: TimbreFrame[];
}Dynamics
interface AnalysisDynamics {
dynamicRangeDb?: number; // Absent when not measured.
peakDb: number; // -Infinity for silence.
rmsDb: number; // -Infinity for silence.
loudnessRangeLu?: number; // Absent for silence or when no 3 s block passes the gates.
crestFactor?: number; // Absent when not measured.
isCompressed: boolean;
}AnalysisRhythm
interface AnalysisRhythm {
syncopation?: number;
grooveType: string; // "straight", "shuffle", "swing"
patternRegularity?: number;
tempoStability?: number;
timeSignature: TimeSignature;
}AnalysisMelody
interface AnalysisMelody {
pitchRangeOctaves?: number;
pitchStability?: number;
meanFrequencyHz?: number;
vibratoRateHz?: number;
pitches: MelodyPoint[]; // per-frame pitch trajectory
}The four summary measurements are absent when there are no voiced frames.
MelodyPoint
interface MelodyPoint {
timeSec: number; // frame time in seconds
frequencyHz?: number; // estimated f0 in Hz; absent when unvoiced
confidence: number; // voicing confidence, 0.0 to 1.0
}Focused analysis results
The focused analyze* helpers return these. Each is the matching analyze() sub-object plus the fields shown:
| Helper | Result type | Fields beyond the analyze() sub-object |
|---|---|---|
analyzeBpm | BpmAnalysisResult | bpm, confidence, candidates: BpmCandidate[] ({ bpm, confidence }; candidates[0] is the chosen tempo, the rest follow by vote share), autocorrelation, tempogram |
analyzeRhythm | RhythmResult | AnalysisRhythm plus bpm (the beat tracker's refined tempo) and beatIntervals |
analyzeDynamics | DynamicsResult | AnalysisDynamics plus loudnessTimesSec and loudnessRmsDb (parallel Float32Arrays) |
analyzeTimbre | TimbreResult | TimbreFrame plus spectralCentroid, spectralFlatness, spectralRolloff, timbreOverTime |
analyzeMelody | MelodyResult | the AnalysisMelody summary fields, with the trajectory under points: MelodyPoint[] (melody.pitches in analyze()) |
RoomMorphResult
roomMorph(...) returns the morphed audio together with what the target-room synthesis had to change to produce it:
interface RoomMorphResult {
audio: Float32Array; // input length plus the target room's reverb tail
sampleRate: number;
diagnostics: RirDiagnostic[]; // every diagnostic the synthesis reported, in order
}
interface RirDiagnostic {
code: string; // stable id, e.g. 'acoustic.rir_length_clamped'
message: string;
severity: 'info' | 'warning' | 'error';
}An unusable morph throws, and so does an unusable synthesizeRir(...) call, so neither result has an error flag and every entry in diagnostics is recoverable. Branch on code: acoustic.ism_order_clamped (image-source order reduced to the safe maximum), acoustic.rir_length_clamped (tail cut against maxSec or against a resource limit), acoustic.rir_length_floored (maxSec is shorter than the direct sound's flight time), acoustic.rir_tail_truncated (maxSec cuts the longest band before it decays by 60 dB) and acoustic.no_late_tail (no diffuse tail produced) each mean the morph went through a room other than the one requested, and none is visible in the audio itself. synthesizeRir(...) reports the same shape on RirResult.diagnostics. The C ABI publishes the same entries through sonare_last_diagnostic(), so a caller there branches on the code too.
RoomMorphStereoResult
roomMorphStereo({ left, right, sampleRate, receiverSpacingM?, ... }) takes the same room options as roomMorph(...) and returns one morphed channel per input channel. The target room is heard at two omnidirectional receivers receiverSpacingM apart across the listener (metres, in (0, 4], default 0.5); each channel is convolved with its own receiver's response. RoomMorphStereoResult is { left, right, sampleRate, diagnostics }: both Float32Array channels are the input length plus the reverb tail, and diagnostics carries the same codes as RoomMorphResult.diagnostics. Channels of different length, or a receiverSpacingM that is non-finite or outside (0, 4],throw RangeError. sampleRate is required.
Room estimate and RIR types
interface RoomEstimateResult {
volume?: number; // m^3; absent with the dimensions when no broadband decay was measurable
lengthM?: number; // the names synthesizeRir takes; absent when no decay was measurable
widthM?: number;
heightM?: number;
drrDb?: number; // Absent when the direct/reverberant balance was not measurable
confidence: number;
bandAbsorption?: Float32Array;
rt60Bands?: Float32Array;
}
interface RirResult {
rir: Float32Array;
sampleRate: number;
diagnostics: RirDiagnostic[]; // warnings only; an unusable synthesis throws
}
type MaterialPresetName = 'none' | 'concrete' | 'wood' | 'curtain' | 'carpet' | 'glass';
type AcousticModeName = 'auto' | 'blind' | 'impulseResponse';
interface RoomPlacement { x: number; y: number; z: number } // metersmaterialPreset and the estimate mode take these names only; a number is a TypeError. roomGeometryFromEstimate(...) turns a RoomEstimateResult into a RoomGeometry for synthesizeRir(...); the result also carries source and listener (the default placement scaled per axis into the estimated room, identical to the default at 7 x 5 x 3) and a scalar absorption (the mean of the finite bands), and positions you pass override the scaled ones (see Room Acoustics).
MasteringChainConfig
masterAudio* (as overrides) and StreamingMasteringChain use the nested config schema below. Every key is optional. Only the stages you set are activated; every stage object below (denoise, tilt, compressor, loudness and the rest) also accepts enabled?: boolean to switch that stage explicitly (the listing omits it rather than repeat it). The saturation.tape and saturation.exciter stages engage from an override only with enabled: true. A flat dot-notation key such as "dynamics.compressor.thresholdDb" is also accepted on the same object at run time, but it is not part of the declared type; prefer the nested spelling, which is checked field by field.
Stages always run in a fixed order:
masterAudio* starts from a preset and applies the config as overrides over it.
maximizer.truePeakLimiter.releaseMs controls the post-limiter release time. Omit it to keep the preset/config default of 50 ms; an explicit 0 is refused. maximizer.truePeakLimiter.applyGainAtInputRate applies static loudness gain before oversampling when set, which is useful when you need that gain staged at the source rate for host parity.
repair.denoise.reductionDb sets the deepest attenuation, in dB, the gain mask may apply to any bin; it defaults to 26.
Full interface (click to expand)
interface MasteringChainConfig {
repair?: {
denoise?: { mode?: 'logMmse' | 'mmseStsa' | 'spectralSubtraction';
noiseEstimator?: 'quantile' | 'mcra' | 'imcra' | 'spp'; nFft?: number;
hopLength?: number; ddAlpha?: number; reductionDb?: number;
overSubtraction?: number; spectralFloor?: number;
noiseEstimationQuantile?: number; speechPresenceGain?: boolean;
gainSmoothing?: boolean; };
declip?: { clipThresholdDb?: number; lpcOrder?: number; iterations?: number; };
decrackle?: { threshold?: number; levels?: number; mode?: 'median' | 'waveletShrinkage'; };
dehum?: { fundamentalHz?: number; harmonics?: number; q?: number; adaptive?: boolean;
searchRangeHz?: number; adaptation?: number; frameSize?: number;
pllBandwidth?: number; mode?: 'subtract' | 'notch'; };
declick?: { threshold?: number; neighborRatio?: number; maxClickSamples?: number;
lpcOrder?: number; residualRatio?: number; };
dereverb?: { threshold?: number; attenuation?: number; nFft?: number; hopLength?: number;
t60Sec?: number; lateDelayMs?: number; overSubtraction?: number;
spectralFloor?: number; wpeEnabled?: boolean; wpeIterations?: number;
wpeTaps?: number; wpeStrength?: number; };
};
eq?: {
tilt?: { tiltDb?: number; pivotHz?: number };
};
dynamics?: {
compressor?: { thresholdDb?: number; ratio?: number; attackMs?: number; releaseMs?: number;
kneeDb?: number; makeupGainDb?: number; autoMakeup?: boolean;
sidechainHighPassHz?: number; };
deesser?: { frequencyHz?: number; thresholdDb?: number; ratio?: number; attackMs?: number;
releaseMs?: number; rangeDb?: number; bandPassQ?: number; };
transientShaper?: { attackGainDb?: number; sustainGainDb?: number; fastAttackMs?: number;
fastReleaseMs?: number; slowAttackMs?: number; slowReleaseMs?: number;
sensitivity?: number; maxGainDb?: number; gainSmoothingMs?: number;
lookaheadMs?: number; };
multibandComp?: {
/** Arbitrary band count (2..64); `cutoffsHz` sets it to length + 1. */
crossover?: { cutoffsHz?: number[]; slope?: 'lr2' | 'lr4' | 'lr8';
mode?: 'linkwitzRiley' | 'butterworth' | 'bessel' | 'firLinearPhase';
firKernelSize?: number; };
/** Per-band compressor settings by band index. */
bands?: MultibandCompressorBand[]; };
};
saturation?: {
tape?: { driveDb?: number; saturation?: number; hysteresis?: number; outputGainDb?: number;
speedIps?: number; headBumpDb?: number; bias?: number; gapLoss?: number;
oversampleFactor?: number; };
exciter?: { frequencyHz?: number; driveDb?: number; amount?: number; q?: number;
evenOddMix?: number; aliasing?: 'none' | 'oversample4x'; };
};
spectral?: {
airBand?: { amount?: number; shelfFrequencyHz?: number;
dynamicThresholdDb?: number; dynamicRangeDb?: number; };
};
stereo?: {
imager?: { width?: number; outputGainDb?: number; decorrelationAmount?: number;
preserveEnergy?: boolean; };
monoMaker?: { amount?: number; frequencyHz?: number };
};
maximizer?: {
truePeakLimiter?: { ceilingDbtp?: number; lookaheadMs?: number; releaseMs?: number;
oversampleFactor?: number; applyGainAtInputRate?: boolean; };
};
loudness?: { targetLufs?: number; ceilingDbtp?: number; truePeakOversample?: number;
releaseMs?: number; applyGainAtInputRate?: boolean;
maxLimiterGainReductionDb?: number; };
}
interface MasteringResult { // masteringApplyProcessor, masteringApplyPairProcessor
samples: Float32Array;
sampleRate: number;
inputLufs: number;
outputLufs: number;
appliedGainDb: number;
loudnessTargetLimited?: boolean;
latencySamples: number;
nonFiniteSubstitutionCount: number; // samples a limiter replaced with a finite value
}
interface MasteringChainResult { // masterAudio
samples: Float32Array; // latency-compensated; there is no latencySamples
sampleRate: number;
inputLufs: number;
outputLufs: number;
appliedGainDb: number;
stages: string[];
outputTruePeakDbtp: number;
outputLoudnessRangeLu: number;
loudnessTargetLimited: boolean;
nonFiniteSubstitutionCount: number;
stageGainReductions: StageGainReduction[];
report: MasteringReport;
}
interface MasteringStereoResult { // masteringApplyProcessorStereo
left: Float32Array;
right: Float32Array;
sampleRate: number;
inputLufs: number;
outputLufs: number;
appliedGainDb: number;
latencySamples: number;
loudnessTargetLimited: boolean;
nonFiniteSubstitutionCount: number;
}
// masterAudioStereo returns MasteringChainStereoResult:
// MasteringChainResult with left/right in place of samples.Enum-valued repair keys take the name only (an ordinal is a TypeError listing the names): denoise.mode ('logMmse', 'mmseStsa', 'spectralSubtraction'), denoise.noiseEstimator ('quantile', 'mcra', 'imcra', 'spp'), decrackle.mode ('median', 'waveletShrinkage'), and dehum.mode ('subtract', 'notch').
The multiband compressor is configured from every chain call. crossover.cutoffsHz replaces the cutoff list and sets the band count (up to 64; an empty list is a RangeError); bands addresses each band by index with a MultibandCompressorBand: thresholdDb, ratio, attackMs, releaseMs, kneeDb, makeupGainDb, autoMakeup, detector ('peak', 'rms' or 'logRms'), sidechainHighPassHz, pdrTimeMs and pdrReleaseScale, all optional (an omitted field keeps the base value). With unity ratios the Linkwitz-Riley bands sum flat at the cutoff (0.00 dB at lr2 and lr4), while the Butterworth and Bessel bands do not cancel there but add up: a 1 kHz tone at a 1 kHz cutoff reads +3.01 dB for Butterworth at lr2 and lr4, and +2.68 dB (lr2) and +1.69 dB (lr4) for Bessel.
The glossary mastering guides explain when to reach for each section: Repair, Tone and Air, Dynamics, Stereo, Limiter, Loudness.
Enumerations
PitchClass
const PitchClass = {
C: 0, Cs: 1, D: 2, Ds: 3, E: 4, F: 5,
Fs: 6, G: 7, Gs: 8, A: 9, As: 10, B: 11
} as const;KeyMode
A mode is a name, KeyMode: 'major' | 'minor' | 'dorian' | 'phrygian' | 'lydian' | 'mixolydian' | 'locrian'. detectKey, detectKeyCandidates, analyze and autoTune return mode: 'major', 'minor', and so on, and the keyMode input of detectChords, chordFunctionalAnalysis and Audio.chordFunctionalAnalysis takes the same names, so a detected mode passes straight back; an ordinal is a TypeError listing the names. The root is a pitch class number, keyRoot: PitchClass (1 is C#); a name such as 'C#' is a TypeError.
ChordQuality
ChordQuality is a union of names, listed in order by CHORD_QUALITIES:
const CHORD_QUALITIES = [
'major', 'minor', 'diminished', 'augmented',
'dominant7', 'major7', 'minor7', 'sus2', 'sus4',
'unknown', 'add9', 'minorAdd9', 'dim7',
'halfDim7', 'major9', 'dominant9', 'sus2Add4',
'major6', 'minor6', 'minorMajor7', 'dominant7Sus4',
'dominant11', 'dominant13',
'dominant7Flat9', 'dominant7Sharp9'
] as const;Sixths, m7b5 and 7sus4 are anagrams of chords you already have
Three of these qualities share their exact pitch-class set with a quality that was already in the enum, transposed:
- a
major6spells theminor7a minor third below it (C6=Am7), - a
minor6spells thehalfDim7a minor third below it (Cm6=Am7b5), - a
dominant7Sus4spells thesus2Add4a fourth above it (C7sus4=Fsus2add4).
Nothing in a chromagram separates those pairs: the two readings are the same twelve-dimensional vector. The detector therefore keeps the established reading as the default and only promotes the sixth when the bass supports it, so a passage a musician would write as C6 will usually be reported as Am7 unless the bass sits on C. Treat major6 and minor6 as evidence about the bass, not as a correction the detector will make from harmony alone.
SectionType
SectionType is a union of names: 'intro', 'verse', 'preChorus', 'chorus', 'bridge', 'instrumental', 'outro', 'unknown'.
Type Export Index
The WASM package exports TypeScript helper types in addition to functions and classes. Use these when typing options, realtime buffers, and callback payloads. The index lists the types and constants an application most often needs; the package's .d.ts declarations are the complete list.
| Area | Exported types/constants |
|---|---|
| Environment and engine | Capabilities, CapabilityCatalog, ProgressCallback |
| Engine lane mixer, markers, and MIDI clips | MAX_TRACK_LANES (32), EngineTrackLane, EngineTrackSend, EngineBus, EngineMarker, EngineMidiClipSchedule, EngineMidiEvent, ExternalMidiEvent, MarkerKind, ProjectMarker |
| Key/chord/rhythm/timbre analysis | ChordDetectionOptions, KeyMode, PitchClass, BpmAnalysisResult, BpmCandidate, AnalysisBpmCandidate, RhythmResult, TimbreResult, TimbreFrame, DynamicsResult, MelodyResult |
| Workers | OfflineWorkerClient, OfflineWorkerClientOptions, OfflineWorkerCallOptions, OfflineWorker; see Web Worker Usage |
| Spectral, pitch, and feature transforms | StftResult, MelSpectrogramResult, PitchCorrectOptions, VoicedFlags, SpectralRegionOp, SpectralEditOptions, TempogramMode, HarmonicRequest, HpssRequest, PercussiveRequest, AutoTuneRequest, PitchShiftRequest, TimeStretchRequest |
| Paged clip streaming | ClipPageStreamerEngine, ClipPageStreamerOptions, ClipPageStreamSource, OpfsClipStream, OpfsClipStreamOptions, OpfsClipPageProviderOptions |
| Mastering and capability catalog | MasteringProcessorParams, MasteringProcessorCatalogEntry, MasteringInsertParamInfo, MasteringInsertParamChoice, MasteringInsertSlot, MasteringInsertTiming, CapabilityCatalog, CapabilityCatalogPresets, CapabilityCatalogChain, CapabilityCatalogChainStage, CapabilityCatalogChainList, MasteringPresetCatalogEntry, MultibandCompressorBand, MasteringInsertParamDependency, MasteringChannelPolicy, MasteringChainStereoResult, MasteringAudioProfileStereoRequest, MasteringAssistantSuggestStereoRequest, MasteringStreamingPreviewStereoRequest, MeteringCrestFactorDbStereoRequest |
| Streaming retune and EQ | StreamingRetuneConfig, StreamingEqualizerConfig, EqBandType, EqBandPhase, EqCoeffMode, EqMatchOptions, EqStereoPlacement |
| Realtime voice | VoicePresetId, RealtimeVoiceChangerConfigInput, RealtimeVoiceChangerConfig, RealtimeVoiceChangerMonoBuffer, RealtimeVoiceChangerInterleavedBuffer, RealtimeVoiceChangerPlanarBuffer |
| Mixing and Worklet realtime buffers | MixerRealtimeBuffer, SurroundPan (the parameter type of Mixer.setSurroundPan) |
| Name lists | MIX_SCENE_PRESETS, MASTERING_INSERT_NAMES (with MasteringInsertName), SOLO_PROCESSORS (with SoloProcessor), SECTION_TYPES (with SectionType), CHORD_QUALITIES |
| Project and engine automation | ProjectAssistSidecar, ProjectAssistSidecarInput, ProjectAutomationTargetKind, EngineTrackMonitorMode |
| Pan law | PanLaw |
| Controller and articulation value tables | CONTROLLER_INPUTS, CONTROLLER_AXES, ARTICULATIONS |
| Vocal edit handles | VocalEditDraft, VocalRenderJob, VocalRenderSnapshot; see Vocal Editing |
Literal unions and enum-like tables
These exported string-literal unions name the values a field or call accepts. A value is its name; an ordinal is refused. synthEnumTables() returns the runtime tables represented by SynthEnumTables as string[]; its retriggers, lfoShapes, sampleLoopModes, sampleKeyTracks, partRigModes and sampleDescLoopModes tables cover the matching unions below, and the retrigger values are also exported as SYNTH_RETRIGGERS.
| Type | Values | Where it appears |
|---|---|---|
SynthEngineMode | 'default', 'subtractive', 'fm', 'karplusStrong', 'modal', 'additive', 'percussion', 'piano', 'pipeOrgan', 'bowedString', 'reed', 'brass', 'flute', 'pluckedString', 'vocal', 'freeReed', 'harpsichord', 'sample', 'singing' | SynthPatch.engineMode; a patch that sets only an engine mode voices that engine's base preset; 'sample' is silent until a bank is supplied |
SynthOscWaveform | 'default', 'sine', 'saw', 'square', 'triangle', 'noise' | SynthPatch.waveform |
SynthFilterModel | 'default', 'svf', 'transistorLadder', 'diodeLadder', 'sallenKey', 'svf4Pole' | SynthPatch.filterModel; 'svf4Pole' is an unsaturated 24 dB/octave lowpass of two state-variable sections |
SynthLfoShape | 'default', 'triangle', 'sine', 'random' | SynthPatch.lfoShape; the vibrato and tremolo LFO waveform at every destination, exported with SYNTH_LFO_SHAPES; 'random' is a smoothed sample-and-hold seeded per voice, so a bounce repeats it |
SynthFilterOutput | 'default', 'lowPass', 'bandPass', 'highPass' | SynthPatch.filterOutput (SVF only) |
SynthBodyType | 'default', 'none', 'guitar', 'violin', 'woodTube', 'brassBell', 'vocal' | SynthPatch.body |
SynthRetrigger | 'default', 'free', 'note' | SynthPatch.retrigger; exported as SynthRetrigger and SYNTH_RETRIGGERS on Node/WASM |
SynthModSource | 'none', 'ampEnv', 'filterEnv', 'lfo1', 'lfo2', 'velocity', 'keyTrack', 'modWheel', 'random', 'breath', 'aftertouch', 'expressionCc', 'pitchBend' | SynthModRouting.source |
SynthModDestination | 'none', 'pitchCents', 'cutoffCents', 'ampGain', 'panUnits', 'resonanceQ', 'vibratoDepthCents', 'filterEnvDepth', 'lfo1RateScale', 'excitationForce', 'excitationPosition', 'excitationBrightness', 'spectrumMorph' | SynthModRouting.destination |
SampleLoopMode / SampleKeyTrack | 'default', 'none', 'continuous', 'keyDown' / 'default', 'on', 'off' | SynthPatch.sampleLoop / SynthPatch.sampleKeyTrack |
SampleDescLoopMode | 'none', 'continuous', 'keyDown' | SampleDesc.loopMode; the recording's own loop mode, a different set from SampleLoopMode |
BuiltinSynthWaveform | 'sine', 'saw', 'sawtooth', 'square', 'triangle' | BuiltinSynthConfig.waveform |
ControllerInput / ControllerAxis | 'controlChange', 'channelPressure', 'polyPressure', 'pitchBend', 'velocity' / 'none', 'excitation', 'position', 'brightness', 'morph', 'loudness', 'pitchCents', 'vibratoDepth' | ControllerBinding.input / .axis for RealtimeEngine.bindController |
Articulation | 'poly', 'monoRetrigger', 'monoLegato' | RealtimeEngine.setArticulation |
MpeDimension / NoteTracking | 'bend', 'pressure', 'timbre' / 'last', 'lowest', 'highest', 'all' | RealtimeEngine.setControllerNoteTracking |
SourceBackend | 'sf2', 'synth' | Sf2ProgramStatus.backend from Project.soundFontManifest |
EngineCaptureSource | 'output', 'input' | RealtimeEngine.configureCapture({ capacityFrames, source }) |
ProjectTrackKind | 'audio', 'midi', 'aux' | Project.addTrack, Project.setTrackKind |
ProjectLoopMode | 'off', 'loop' | Project.setClipLoop |
ProjectFadeCurve | 'linear', 'equalPower', 'exponential', 'logarithmic' | ProjectClipFadeInput.curve for Project.setClipFade |
MasteringProcessorCategory | 'dynamics', 'effects', 'eq', 'final', 'maximizer', 'multiband', 'other', 'reference', 'repair', 'saturation', 'spectral', 'stereo', 'utility', 'voice' | MasteringProcessorCatalogEntry.category from masteringProcessorCatalog() |
MasteringRealtimeCost | 'low', 'moderate', 'high' | MasteringProcessorCatalogEntry.realtimeCost (absent when unrated) |
PairProcessor | 'match.applyMatchEq', 'match.alignReferenceToSource', 'match.abSwitch', 'match.abCrossfade' | processor of masteringApplyPairProcessor; listed by masteringPairProcessorNames() |
PairAnalysis | 'match.referenceLoudness', 'match.tonalBalance', 'match.tonalBalanceLogBands', 'match.matchEqCurve', 'match.estimateReferenceDelaySamples' | analysis of masteringAnalyzePair; listed by masteringPairAnalysisNames() |
StereoAnalysis | 'stereo.monoCompatCheck', 'stereo.monoCompatCheckLogBands' | analysis of masteringAnalyzeStereo; listed by masteringStereoAnalysisNames() |
DehumMode | 'subtract', 'notch' | mode of masteringRepairDehum |
MixAnalysisBand | 'sub', 'low', 'lowMid', 'mid', 'highMid', 'high', 'air' | keys of MixBandOccupancy; MixCrowdedBand.band in the mix assistant's analysis |
SpectralEditMode | 'gain', 'attenuate', 'mute', 'heal' | SpectralRegionOp.mode for spectralEdit (its SpectralEditOptions.window is a WindowType) |
NoteTargetUnmatchedPolicy | 'leave' (default), 'mute', 'nearest' | unmatchedPolicy of assignNoteTargets |
MasteringInsertParamInfo leaves id, choices, and slot absent when a key has none. MasteringProcessorCatalogEntry.slots lists the conditional key groups described by MasteringInsertSlot. forms lists every way the id runs, realtime first: 'realtime' when it builds as a scene insert, 'offline' when it runs over a whole file (every match.* pair id). params describes every listed form unless the entry carries offlineParams, the offline form's parameters, present only when they differ. CapabilityCatalog.masteringPresets contains entries with name, kind, targetLufs, truePeakCeilingDbtp, and maxLimiterGainReductionDb; the three numeric fields are absent for restoration presets. SynthParamInfo (returned by synthEngineParamInfo(engineMode) and synthPatchParamInfo()) has name, type ('number' or 'boolean'), optional integer, min and max, default (number | boolean; a boolean for a switch) and unit, plus an optional activeWhen list of SynthParamCondition (key, scope 'engine' or 'patch', relation one of 'eq', 'ne', 'gt', 'ge', 'lt', 'le', and value) as SynthParamCondition[][]: the field reaches the voice when every condition of at least one inner list holds; it is absent for an unconditional field, and a field without it may still act only under a performance or saturate past some value; synthEngineParamInfo is [] for the modes that have no section. For the voice-start behavior of SynthPatch.retrigger, see Built-in Synthesizer.