@libraz/libsonare 1.3.3 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +168 -3
- package/dist/index.js.map +1 -1
- package/dist/sonare-rt-module.js +2 -2
- package/dist/sonare-rt.js +2 -2
- package/dist/sonare-rt.wasm +0 -0
- package/dist/sonare.js +2 -2
- package/dist/sonare.wasm +0 -0
- package/dist/worklet.d.ts +579 -154
- package/dist/worklet.js +622 -110
- package/dist/worklet.js.map +1 -1
- package/package.json +1 -1
- package/src/codes.ts +6 -1
- package/src/effects_mastering.ts +103 -1
- package/src/feature_music.ts +18 -4
- package/src/feature_spectral.ts +7 -1
- package/src/index.ts +14 -0
- package/src/mixer.ts +9 -0
- package/src/project.ts +74 -0
- package/src/public_types.ts +52 -0
- package/src/realtime_engine.ts +141 -2
- package/src/sonare.js.d.ts +81 -0
- package/src/stream_types.ts +7 -0
- package/src/validation.ts +7 -0
- package/src/worklet/audio_types.ts +2 -0
- package/src/worklet/guards.ts +146 -0
- package/src/worklet/messages.ts +461 -0
- package/src/worklet/protocol.ts +767 -0
- package/src/worklet.ts +541 -1106
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { A as AcousticOptions, a as AcousticResult, b as AnalysisResult, c as AnalyzeBpmOptions, d as AnalyzeDynamicsOptions, e as AnalyzeRhythmOptions, f as AnalyzeSectionsOptions, g as AnalyzeTimbreOptions, h as AnalyzerStats, i as Audio, j as AutomationCurve, B as BarChord, k as Beat, l as BindMicrophoneInputOptions, m as BindWebMidiOptions, n as BpmAnalysisResult, o as BpmCandidate, p as BrowserAudioDecodeOptions, q as BuiltinSynthBinding, r as BuiltinSynthConfig, s as BuiltinSynthWaveform, C as Chord, t as ChordAnalysisResult, u as ChordChange, v as ChordDetectionOptions, w as ChordQuality, x as ChromaResult, y as ClippingRegion, z as ClippingReport, D as CompressorDetector, E as CompressorOptions, F as CqtResult, G as DeclickOptions, H as DeclipOptions, I as DecomposeResult, J as DecrackleMode, K as DecrackleOptions, L as DehumOptions, M as DenoiseClassicalMode, N as DenoiseClassicalNoiseEstimator, O as DenoiseClassicalOptions, P as DereverbClassicalOptions, Q as DynamicRangeReport, R as Dynamics, S as DynamicsAnalysisResult, T as DynamicsResult, U as EXPECTED_ENGINE_ABI_VERSION, V as EXPECTED_PROJECT_ABI_VERSION, W as EngineAutomationPoint, X as EngineBounceOptions, Y as EngineBounceResult, Z as EngineBus, _ as EngineCapabilities, $ as EngineCaptureStatus, a0 as EngineClip, a1 as EngineFreezeOptions, a2 as EngineFreezeResult, a3 as EngineGraphSpec, a4 as EngineMarker, a5 as EngineMeterTelemetry, a6 as EngineMetronomeConfig, a7 as EngineMidiClipSchedule, a8 as EngineMidiEvent, a9 as EngineParameterInfo, aa as EngineTelemetry, ab as EngineTempoSegment, ac as EngineTimeSignatureSegment, ad as EngineTrackLane, ae as EngineTrackSend, af as EngineTransportState, ag as EqBand, ah as EqBandPhase, ai as EqBandType, aj as EqCoeffMode, ak as EqMatchOptions, al as EqSpectrumSnapshot, am as EqStereoPlacement, an as ErrorCode, ao as FrameBuffer, ap as GateOptions, aq as GoniometerPoint, ar as HpssResult, as as HpssWithResidualResult, at as Key, au as KeyCandidate, av as KeyDetectionOptions, aw as KeyProfile, ax as KeyProfileName, ay as LufsResult, az as MasteringChainConfig, aA as MasteringChainResult, aB as MasteringOptions, aC as MasteringPreset, aD as MasteringProcessorParams, aE as MasteringResult, aF as MasteringStereoChainResult, aG as MasteringStereoResult, aH as Matrix2dResult, aI as MelPowerResult, aJ as MelSpectrogramResult, aK as MelodyOptions, aL as MelodyPoint, aM as MelodyResult, aN as MeterTap, aO as MeteringDetectClippingOptions, aP as MeteringDynamicRangeOptions, aQ as MfccResult, aR as MicrophoneInputBinding, aS as MidiCcBindOptions, aT as MidiCcLearnOptions, aU as MixMeterSnapshot, aV as MixOptions, aW as MixResult, aX as Mixer, aY as MixerProcessResult, aZ as MixerRealtimeBuffer, a_ as Mode, a$ as NoteStretchOptions, b0 as OpfsClipPageProviderBinding, b1 as OpfsClipPageProviderOptions, b2 as PairAnalysis, b3 as PairProcessor, b4 as PanLaw, b5 as PanMode, b6 as PatternScore, b7 as PhaseScopeReport, b8 as Pitch, b8 as PitchClass, b9 as PitchResult, ba as ProgressiveEstimate, bb as Project, bc as ProjectAssistSidecar, bd as ProjectAutomationCurve, be as ProjectAutomationLaneDesc, bf as ProjectAutomationPoint, bg as ProjectBounceOptions, bh as ProjectChordSymbol, bi as ProjectClipCompSegment, bj as ProjectClipDesc, bk as ProjectClipFade, bl as ProjectClipTake, bm as ProjectCompileResult, bn as ProjectFadeCurve, bo as ProjectKeySegment, bp as ProjectLoopMode, bq as ProjectLoopRecordingDesc, br as ProjectLoopRecordingResult, bs as ProjectMidiClipResult, bt as ProjectMidiEvent, bu as ProjectNotePairValidation, bv as ProjectTrackDesc, bw as ProjectTrackKind, bx as ProjectWarpAnchor, by as ProjectWarpMapDesc, bz as RealtimeEngine, bA as RealtimeVoiceChanger, bB as RealtimeVoiceChangerConfigInput, bC as RealtimeVoiceChangerInterleavedBuffer, bD as RealtimeVoiceChangerMonoBuffer, bE as RealtimeVoiceChangerPlanarBuffer, bF as RealtimeVoiceChangerPodConfig, bG as RhythmAnalysisResult, bH as RhythmFeatures, bI as RirResult, bJ as RirSynthOptions, bK as RoomEstimateOptions, bL as RoomEstimateResult, bM as RoomGeometryOptions, bN as RoomMorphOptions, bO as SYNTH_BODY_TYPES, bP as SYNTH_ENGINE_MODES, bQ as SYNTH_FILTER_MODELS, bR as SYNTH_FILTER_OUTPUTS, bS as SYNTH_MOD_DESTINATIONS, bT as SYNTH_MOD_SOURCES, bU as SYNTH_OSC_WAVEFORMS, bV as Section, bW as SectionType, bX as SendTiming, bY as Sf2InstrumentConfig, bZ as Sf2ProgramStatus, b_ as SoloProcessor, b$ as SonareError, c0 as SourceBackend, c1 as SpectrumOptions, c2 as SpectrumReport, c3 as StereoAnalysis, c4 as StftPowerResult, c5 as StftResult, c6 as StreamAnalyzer, c7 as StreamConfig, c8 as StreamConfigDefaults, c9 as StreamFramesI16, ca as StreamFramesU8, cb as StreamQuantizeConfig, cc as StreamingEqualizer, cd as StreamingEqualizerConfig, ce as StreamingMasteringChain, cf as StreamingMasteringChainConfig, cg as StreamingPlatform, ch as StreamingRetune, ci as StreamingRetuneConfig, cj as SynthBodyType, ck as SynthEngineMode, cl as SynthEnumTables, cm as SynthFilterModel, cn as SynthFilterOutput, co as SynthModDestination, cp as SynthModRouting, cq as SynthModSource, cr as SynthOscWaveform, cs as SynthPatch, ct as TempogramMode, cu as Timbre, cv as TimbreAnalysisResult, cw as TimbreFrame, cx as TimeSignature, cy as TransientShaperOptions, cz as TrimSilenceMode, cA as TrimSilenceOptions, cB as ValidateOptions, cC as VectorscopeReport, cD as VoiceChangeOptions, cE as VoiceChangeRealtimeOptions, cF as VoicePresetId, cG as WaveformPeakPyramidOptions, cH as WaveformPeaksOptions, cI as WaveformPeaksReport, cJ as WebMidiBinding, cK as WebMidiCcBinding, cL as WebMidiInputInfo, cM as amplitudeToDb, cN as analyze, cO as analyzeBpm, cP as analyzeDynamics, cQ as analyzeImpulseResponse, cR as analyzeMelody, cS as analyzeRhythm, cT as analyzeSections, cU as analyzeTimbre, cV as analyzeWithProgress, cW as bassChroma, cX as bindMicrophoneInput, cY as bindWebMidi, cZ as chordFunctionalAnalysis, c_ as chroma, c$ as chromaCens, d0 as cqt, d1 as createOpfsClipPageProvider, d2 as createOpfsClipPageWorker, d3 as cyclicTempogram, d4 as dbToAmplitude, d5 as dbToPower, d6 as decompose, d7 as decomposeWithInit, d8 as deemphasis, d9 as detectAcoustic, da as detectBeats, db as detectBpm, dc as detectChords, dd as detectDownbeats, de as detectKey, df as detectKeyCandidates, dg as detectOnsets, dh as ebur128LoudnessRange, di as engineAbiVersion, dj as engineCapabilities, dk as estimateRoom, dl as estimateTuning, dm as fixFrames, dn as fixLength, dp as fourierTempogram, dq as frameSignal, dr as framesToSamples, ds as framesToTime, dt as harmonic, du as hasFfmpegSupport, dv as hpss, dw as hpssWithResidual, dx as hybridCqt, dy as hzToMel, dz as hzToMidi, dA as hzToNote, init, isInitialized, dB as isSonareError, dC as isWebMidiAvailable, dD as lufs, dE as lufsInterleaved, dF as masterAudio, dG as masterAudioStereo, dH as masterAudioStereoWithProgress, dI as masterAudioWithProgress, dJ as mastering, dK as masteringAssistantSuggest, dL as masteringAudioProfile, dM as masteringChain, dN as masteringChainStereo, dO as masteringChainStereoWithProgress, dP as masteringChainWithProgress, dQ as masteringDynamicsCompressor, dR as masteringDynamicsGate, dS as masteringDynamicsTransientShaper, dT as masteringInsertNames, dU as masteringInsertParamNames, dV as masteringPairAnalysisNames, dW as masteringPairAnalyze, dX as masteringPairProcess, dY as masteringPairProcessorNames, dZ as masteringPresetNames, d_ as masteringProcess, d$ as masteringProcessStereo, e0 as masteringProcessorNames, e1 as masteringRepairDeclick, e2 as masteringRepairDeclip, e3 as masteringRepairDecrackle, e4 as masteringRepairDehum, e5 as masteringRepairDenoiseClassical, e6 as masteringRepairDereverbClassical, e7 as masteringRepairTrimSilence, e8 as masteringStereoAnalysisNames, e9 as masteringStereoAnalyze, ea as masteringStreamingPreview, eb as melSpectrogram, ec as melToAudio, ed as melToHz, ee as melToStft, ef as meteringCrestFactorDb, eg as meteringDcOffset, eh as meteringDetectClipping, ei as meteringDynamicRange, ej as meteringPeakDb, ek as meteringPhaseScope, el as meteringPhaseScopeDecimated, em as meteringRmsDb, en as meteringSpectrum, eo as meteringSpectrumFrame, ep as meteringStereoCorrelation, eq as meteringStereoWidth, er as meteringTruePeakDb, es as meteringVectorscope, et as meteringVectorscopeDecimated, eu as mfcc, ev as mfccToAudio, ew as mfccToMel, ex as midiToHz, ey as mixStereo, ez as mixingScenePresetJson, eA as mixingScenePresetNames, eB as momentaryLufs, eC as nnFilter, eD as nnlsChroma, eE as normalize, eF as noteStretch, eG as noteToHz, eH as onsetEnvelope, eI as onsetStrengthMulti, eJ as opfsClipPageWorkerSource, eK as padCenter, eL as pcen, eM as peakPick, eN as percussive, eO as phaseVocoder, eP as pitchCorrectToMidi, eQ as pitchCorrectToMidiTimevarying, eR as pitchPyin, eS as pitchShift, eT as pitchTuning, eU as pitchYin, eV as plp, eW as polyFeatures, eX as powerToDb, eY as preemphasis, eZ as projectAbiVersion, e_ as pseudoCqt, e$ as realtimeVoiceChangerPresetConfig, f0 as realtimeVoiceChangerPresetJson, f1 as realtimeVoiceChangerPresetNames, f2 as remix, f3 as resample, f4 as rmsEnergy, f5 as roomMorph, f6 as samplesToFrames, f7 as scaleCorrectionSemitones, f8 as scalePitchClassEnabled, f9 as scaleQuantizeMidi, fa as shortTermLufs, fb as spectralBandwidth, fc as spectralCentroid, fd as spectralContrast, fe as spectralFlatness, ff as spectralRolloff, fg as splitSilence, fh as stft, fi as stftDb, fj as streamAnalyzerConfigDefaults, fk as synthEnumTables, fl as synthPresetNames, fm as synthPresetPatch, fn as synthesizeRir, fo as tempogram, fp as tempogramRatio, fq as timeStretch, fr as timeToFrames, fs as tonnetz, ft as trim, fu as trimSilence, fv as validateRealtimeVoiceChangerPresetJson, fw as vectorNormalize, fx as version, fy as voiceChange, fz as voiceChangeRealtime, fA as voiceChangerAbiVersion, fB as voiceCharacterPresetId, fC as vqt, fD as waveformPeakPyramid, fE as waveformPeaks, fF as zeroCrossingRate, fG as zeroCrossings } from './worklet.js';
|
|
1
|
+
export { A as AcousticOptions, a as AcousticResult, b as AnalysisResult, c as AnalyzeBpmOptions, d as AnalyzeDynamicsOptions, e as AnalyzeRhythmOptions, f as AnalyzeSectionsOptions, g as AnalyzeTimbreOptions, h as AnalyzerStats, i as Audio, j as AutomationCurve, B as BarChord, k as Beat, l as BindMicrophoneInputOptions, m as BindWebMidiOptions, n as BpmAnalysisResult, o as BpmCandidate, p as BrowserAudioDecodeOptions, q as BuiltinSynthBinding, r as BuiltinSynthConfig, s as BuiltinSynthWaveform, C as Chord, t as ChordAnalysisResult, u as ChordChange, v as ChordDetectionOptions, w as ChordQuality, x as ChromaResult, y as ClippingRegion, z as ClippingReport, D as CompressorDetector, E as CompressorOptions, F as CqtResult, G as DeclickOptions, H as DeclipOptions, I as DecomposeResult, J as DecrackleMode, K as DecrackleOptions, L as DehumOptions, M as DenoiseClassicalMode, N as DenoiseClassicalNoiseEstimator, O as DenoiseClassicalOptions, P as DereverbClassicalOptions, Q as DynamicRangeReport, R as Dynamics, S as DynamicsAnalysisResult, T as DynamicsResult, U as EXPECTED_ENGINE_ABI_VERSION, V as EXPECTED_PROJECT_ABI_VERSION, W as EngineAutomationPoint, X as EngineBounceOptions, Y as EngineBounceResult, Z as EngineBus, _ as EngineCapabilities, $ as EngineCaptureStatus, a0 as EngineClip, a1 as EngineFreezeOptions, a2 as EngineFreezeResult, a3 as EngineGraphSpec, a4 as EngineMarker, a5 as EngineMeterTelemetry, a6 as EngineMeterTelemetryWide, a7 as EngineMetronomeConfig, a8 as EngineMidiClipSchedule, a9 as EngineMidiEvent, aa as EngineParameterInfo, ab as EngineScopeTelemetry, ac as EngineTelemetry, ad as EngineTempoSegment, ae as EngineTimeSignatureSegment, af as EngineTrackLane, ag as EngineTrackSend, ah as EngineTransportState, ai as EqBand, aj as EqBandPhase, ak as EqBandType, al as EqCoeffMode, am as EqMatchOptions, an as EqSpectrumSnapshot, ao as EqStereoPlacement, ap as ErrorCode, aq as FrameBuffer, ar as GateOptions, as as GoniometerPoint, at as HpssResult, au as HpssWithResidualResult, av as Key, aw as KeyCandidate, ax as KeyDetectionOptions, ay as KeyProfile, az as KeyProfileName, aA as LufsResult, aB as MarkerKind, aC as MasteringChainConfig, aD as MasteringChainResult, aE as MasteringChannelPolicy, aF as MasteringInsertParamInfo, aG as MasteringOptions, aH as MasteringPreset, aI as MasteringProcessorCatalogEntry, aJ as MasteringProcessorParams, aK as MasteringResult, aL as MasteringStereoChainResult, aM as MasteringStereoResult, aN as Matrix2dResult, aO as MelPowerResult, aP as MelSpectrogramResult, aQ as MelodyOptions, aR as MelodyPoint, aS as MelodyResult, aT as MeterTap, aU as MeteringDetectClippingOptions, aV as MeteringDynamicRangeOptions, aW as MfccResult, aX as MicrophoneInputBinding, aY as MidiCcBindOptions, aZ as MidiCcLearnOptions, a_ as MixMeterSnapshot, a$ as MixOptions, b0 as MixResult, b1 as Mixer, b2 as MixerProcessResult, b3 as MixerRealtimeBuffer, b4 as Mode, b5 as NoteStretchOptions, b6 as OpfsClipPageProviderBinding, b7 as OpfsClipPageProviderOptions, b8 as PairAnalysis, b9 as PairProcessor, ba as PanLaw, bb as PanMode, bc as PatternScore, bd as PhaseScopeReport, be as Pitch, be as PitchClass, bf as PitchResult, bg as ProgressiveEstimate, bh as Project, bi as ProjectAssistSidecar, bj as ProjectAutomationCurve, bk as ProjectAutomationLaneDesc, bl as ProjectAutomationPoint, bm as ProjectBounceOptions, bn as ProjectChordSymbol, bo as ProjectClipCompSegment, bp as ProjectClipDesc, bq as ProjectClipFade, br as ProjectClipTake, bs as ProjectCompileResult, bt as ProjectFadeCurve, bu as ProjectKeySegment, bv as ProjectLoopMode, bw as ProjectLoopRecordingDesc, bx as ProjectLoopRecordingResult, by as ProjectMarker, bz as ProjectMidiClipResult, bA as ProjectMidiEvent, bB as ProjectNotePairValidation, bC as ProjectTrackDesc, bD as ProjectTrackKind, bE as ProjectWarpAnchor, bF as ProjectWarpMapDesc, bG as RealtimeEngine, bH as RealtimeVoiceChanger, bI as RealtimeVoiceChangerConfigInput, bJ as RealtimeVoiceChangerInterleavedBuffer, bK as RealtimeVoiceChangerMonoBuffer, bL as RealtimeVoiceChangerPlanarBuffer, bM as RealtimeVoiceChangerPodConfig, bN as RhythmAnalysisResult, bO as RhythmFeatures, bP as RirResult, bQ as RirSynthOptions, bR as RoomEstimateOptions, bS as RoomEstimateResult, bT as RoomGeometryOptions, bU as RoomMorphOptions, bV as SYNTH_BODY_TYPES, bW as SYNTH_ENGINE_MODES, bX as SYNTH_FILTER_MODELS, bY as SYNTH_FILTER_OUTPUTS, bZ as SYNTH_MOD_DESTINATIONS, b_ as SYNTH_MOD_SOURCES, b$ as SYNTH_OSC_WAVEFORMS, c0 as Section, c1 as SectionType, c2 as SendTiming, c3 as Sf2InstrumentConfig, c4 as Sf2ProgramStatus, c5 as SoloProcessor, c6 as SonareError, c7 as SourceBackend, c8 as SpectralEditMode, c9 as SpectralEditOptions, ca as SpectralEditWindow, cb as SpectralRegionOp, cc as SpectrumOptions, cd as SpectrumReport, ce as StereoAnalysis, cf as StftPowerResult, cg as StftResult, ch as StreamAnalyzer, ci as StreamConfig, cj as StreamConfigDefaults, ck as StreamFramesI16, cl as StreamFramesU8, cm as StreamQuantizeConfig, cn as StreamingEqualizer, co as StreamingEqualizerConfig, cp as StreamingMasteringChain, cq as StreamingMasteringChainConfig, cr as StreamingPlatform, cs as StreamingRetune, ct as StreamingRetuneConfig, cu as SynthBodyType, cv as SynthEngineMode, cw as SynthEnumTables, cx as SynthFilterModel, cy as SynthFilterOutput, cz as SynthModDestination, cA as SynthModRouting, cB as SynthModSource, cC as SynthOscWaveform, cD as SynthPatch, cE as TempogramMode, cF as Timbre, cG as TimbreAnalysisResult, cH as TimbreFrame, cI as TimeSignature, cJ as TransientShaperOptions, cK as TrimSilenceMode, cL as TrimSilenceOptions, cM as ValidateOptions, cN as VectorscopeReport, cO as VoiceChangeOptions, cP as VoiceChangeRealtimeOptions, cQ as VoicePresetId, cR as WaveformPeakPyramidOptions, cS as WaveformPeaksOptions, cT as WaveformPeaksReport, cU as WebMidiBinding, cV as WebMidiCcBinding, cW as WebMidiInputInfo, cX as amplitudeToDb, cY as analyze, cZ as analyzeBpm, c_ as analyzeDynamics, c$ as analyzeImpulseResponse, d0 as analyzeMelody, d1 as analyzeRhythm, d2 as analyzeSections, d3 as analyzeTimbre, d4 as analyzeWithProgress, d5 as bassChroma, d6 as bindMicrophoneInput, d7 as bindWebMidi, d8 as chordFunctionalAnalysis, d9 as chroma, da as chromaCens, db as cqt, dc as createOpfsClipPageProvider, dd as createOpfsClipPageWorker, de as cyclicTempogram, df as dbToAmplitude, dg as dbToPower, dh as decompose, di as decomposeWithInit, dj as deemphasis, dk as detectAcoustic, dl as detectBeats, dm as detectBpm, dn as detectChords, dp as detectDownbeats, dq as detectKey, dr as detectKeyCandidates, ds as detectOnsets, dt as ebur128LoudnessRange, du as engineAbiVersion, dv as engineCapabilities, dw as estimateRoom, dx as estimateTuning, dy as fixFrames, dz as fixLength, dA as fourierTempogram, dB as frameSignal, dC as framesToSamples, dD as framesToTime, dE as harmonic, dF as hasFfmpegSupport, dG as hpss, dH as hpssWithResidual, dI as hybridCqt, dJ as hzToMel, dK as hzToMidi, dL as hzToNote, init, isInitialized, dM as isSonareError, dN as isWebMidiAvailable, dO as lufs, dP as lufsInterleaved, dQ as masterAudio, dR as masterAudioStereo, dS as masterAudioStereoWithProgress, dT as masterAudioWithProgress, dU as mastering, dV as masteringAssistantSuggest, dW as masteringAudioProfile, dX as masteringChain, dY as masteringChainStereo, dZ as masteringChainStereoWithProgress, d_ as masteringChainWithProgress, d$ as masteringDynamicsCompressor, e0 as masteringDynamicsGate, e1 as masteringDynamicsTransientShaper, e2 as masteringInsertNames, e3 as masteringInsertParamInfo, e4 as masteringInsertParamNames, e5 as masteringPairAnalysisNames, e6 as masteringPairAnalyze, e7 as masteringPairProcess, e8 as masteringPairProcessorNames, e9 as masteringPresetNames, ea as masteringProcess, eb as masteringProcessStereo, ec as masteringProcessorCatalog, ed as masteringProcessorNames, ee as masteringRepairDeclick, ef as masteringRepairDeclip, eg as masteringRepairDecrackle, eh as masteringRepairDehum, ei as masteringRepairDenoiseClassical, ej as masteringRepairDereverbClassical, ek as masteringRepairTrimSilence, el as masteringStereoAnalysisNames, em as masteringStereoAnalyze, en as masteringStreamingPreview, eo as melSpectrogram, ep as melToAudio, eq as melToHz, er as melToStft, es as meteringCrestFactorDb, et as meteringDcOffset, eu as meteringDetectClipping, ev as meteringDynamicRange, ew as meteringPeakDb, ex as meteringPhaseScope, ey as meteringPhaseScopeDecimated, ez as meteringRmsDb, eA as meteringSpectrum, eB as meteringSpectrumFrame, eC as meteringStereoCorrelation, eD as meteringStereoWidth, eE as meteringTruePeakDb, eF as meteringVectorscope, eG as meteringVectorscopeDecimated, eH as mfcc, eI as mfccToAudio, eJ as mfccToMel, eK as midiToHz, eL as mixStereo, eM as mixingScenePresetJson, eN as mixingScenePresetNames, eO as momentaryLufs, eP as nnFilter, eQ as nnlsChroma, eR as normalize, eS as noteStretch, eT as noteToHz, eU as onsetEnvelope, eV as onsetStrengthMulti, eW as opfsClipPageWorkerSource, eX as padCenter, eY as pcen, eZ as peakPick, e_ as percussive, e$ as phaseVocoder, f0 as pitchCorrectToMidi, f1 as pitchCorrectToMidiTimevarying, f2 as pitchPyin, f3 as pitchShift, f4 as pitchTuning, f5 as pitchYin, f6 as plp, f7 as polyFeatures, f8 as powerToDb, f9 as preemphasis, fa as projectAbiVersion, fb as pseudoCqt, fc as realtimeVoiceChangerPresetConfig, fd as realtimeVoiceChangerPresetJson, fe as realtimeVoiceChangerPresetNames, ff as remix, fg as resample, fh as rmsEnergy, fi as roomMorph, fj as samplesToFrames, fk as scaleCorrectionSemitones, fl as scalePitchClassEnabled, fm as scaleQuantizeMidi, fn as shortTermLufs, fo as spectralBandwidth, fp as spectralCentroid, fq as spectralContrast, fr as spectralEdit, fs as spectralFlatness, ft as spectralRolloff, fu as splitSilence, fv as stft, fw as stftDb, fx as streamAnalyzerConfigDefaults, fy as synthEnumTables, fz as synthPresetNames, fA as synthPresetPatch, fB as synthesizeRir, fC as tempogram, fD as tempogramRatio, fE as timeStretch, fF as timeToFrames, fG as tonnetz, fH as trim, fI as trimSilence, fJ as validateRealtimeVoiceChangerPresetJson, fK as vectorNormalize, fL as version, fM as voiceChange, fN as voiceChangeRealtime, fO as voiceChangerAbiVersion, fP as voiceCharacterPresetId, fQ as vqt, fR as waveformPeakPyramid, fS as waveformPeaks, fT as zeroCrossingRate, fU as zeroCrossings } from './worklet.js';
|
|
2
2
|
export { ProgressCallback } from './sonare.js';
|
package/dist/index.js
CHANGED
|
@@ -214,7 +214,10 @@ function meterTapCode(tap) {
|
|
|
214
214
|
return tap === "preFader" || tap === 0 ? 0 : 1;
|
|
215
215
|
}
|
|
216
216
|
function sendTimingCode(timing) {
|
|
217
|
-
|
|
217
|
+
if (typeof timing === "number") {
|
|
218
|
+
return timing;
|
|
219
|
+
}
|
|
220
|
+
return timing === "preFader" ? 1 : 0;
|
|
218
221
|
}
|
|
219
222
|
|
|
220
223
|
// src/mixer.ts
|
|
@@ -467,6 +470,13 @@ var Mixer = class _Mixer {
|
|
|
467
470
|
setDualPan(stripIndex, leftPan, rightPan) {
|
|
468
471
|
this.mixer.setDualPan(stripIndex, leftPan, rightPan);
|
|
469
472
|
}
|
|
473
|
+
/**
|
|
474
|
+
* Set the strip's surround pan position, used when it feeds a >2-channel bus.
|
|
475
|
+
* Stored on the scene; inert until the surround DSP path applies it.
|
|
476
|
+
*/
|
|
477
|
+
setSurroundPan(stripIndex, pan) {
|
|
478
|
+
this.mixer.setSurroundPan(stripIndex, pan);
|
|
479
|
+
}
|
|
470
480
|
/**
|
|
471
481
|
* Add a send to a strip after construction.
|
|
472
482
|
*
|
|
@@ -1169,6 +1179,11 @@ function normalize(samples, sampleRate, targetDb = 0, options = {}) {
|
|
|
1169
1179
|
assertSamples("normalize", samples, options.validate !== false);
|
|
1170
1180
|
return requireModule().normalize(samples, sampleRate, targetDb);
|
|
1171
1181
|
}
|
|
1182
|
+
function spectralEdit(samples, sampleRate, ops = [], options = {}) {
|
|
1183
|
+
assertSamples("spectralEdit", samples, options.validate !== false);
|
|
1184
|
+
assertSampleRate("spectralEdit", sampleRate);
|
|
1185
|
+
return requireModule().spectralEdit(samples, sampleRate, ops, options);
|
|
1186
|
+
}
|
|
1172
1187
|
function mastering(samples, sampleRate = 22050, options = {}) {
|
|
1173
1188
|
return requireModule().mastering(
|
|
1174
1189
|
samples,
|
|
@@ -1187,6 +1202,14 @@ function masteringInsertNames() {
|
|
|
1187
1202
|
function masteringInsertParamNames(name) {
|
|
1188
1203
|
return requireModule().masteringInsertParamNames(name);
|
|
1189
1204
|
}
|
|
1205
|
+
function masteringInsertParamInfo(name) {
|
|
1206
|
+
const json = requireModule().masteringInsertParamInfo(name);
|
|
1207
|
+
return JSON.parse(json);
|
|
1208
|
+
}
|
|
1209
|
+
function masteringProcessorCatalog() {
|
|
1210
|
+
const json = requireModule().masteringProcessorCatalog();
|
|
1211
|
+
return JSON.parse(json);
|
|
1212
|
+
}
|
|
1190
1213
|
function masteringPairProcessorNames() {
|
|
1191
1214
|
return requireModule().masteringPairProcessorNames();
|
|
1192
1215
|
}
|
|
@@ -1531,11 +1554,18 @@ function analyzeMelody(samples, sampleRate = 22050, options = {}) {
|
|
|
1531
1554
|
const fmin = options.fmin ?? 65;
|
|
1532
1555
|
const fmax = options.fmax ?? 2093;
|
|
1533
1556
|
validateFrequencyBounds("analyzeMelody", fmin, fmax);
|
|
1557
|
+
if (fmin <= 0) {
|
|
1558
|
+
throw new RangeError("analyzeMelody: fmin must be positive");
|
|
1559
|
+
}
|
|
1534
1560
|
validatePositiveIntegers("analyzeMelody", {
|
|
1535
1561
|
frameLength: options.frameLength ?? 2048,
|
|
1536
1562
|
hopLength: options.hopLength ?? 256
|
|
1537
1563
|
});
|
|
1538
|
-
|
|
1564
|
+
const threshold = options.threshold ?? 0.1;
|
|
1565
|
+
assertFiniteScalar("analyzeMelody", threshold, "threshold");
|
|
1566
|
+
if (threshold <= 0) {
|
|
1567
|
+
throw new RangeError("analyzeMelody: threshold must be positive");
|
|
1568
|
+
}
|
|
1539
1569
|
return requireModule3().analyzeMelody(
|
|
1540
1570
|
samples,
|
|
1541
1571
|
sampleRate,
|
|
@@ -2864,6 +2894,13 @@ function createOpfsClipPageProvider(engine, options) {
|
|
|
2864
2894
|
|
|
2865
2895
|
// src/project.ts
|
|
2866
2896
|
var EXPECTED_PROJECT_ABI_VERSION = 1;
|
|
2897
|
+
var MarkerKind = {
|
|
2898
|
+
marker: 0,
|
|
2899
|
+
text: 1,
|
|
2900
|
+
lyric: 2,
|
|
2901
|
+
cuePoint: 3,
|
|
2902
|
+
keySignature: 4
|
|
2903
|
+
};
|
|
2867
2904
|
var SYNTH_ENGINE_MODES = [
|
|
2868
2905
|
"default",
|
|
2869
2906
|
"subtractive",
|
|
@@ -3203,6 +3240,22 @@ var Project = class _Project {
|
|
|
3203
3240
|
setTrackMidiDestination(trackId, destinationId) {
|
|
3204
3241
|
this.native.setTrackMidiDestination(trackId, destinationId);
|
|
3205
3242
|
}
|
|
3243
|
+
/** Set a track's linear playback gain (1.0 = unity; >= 0) via an undoable edit. */
|
|
3244
|
+
setTrackGain(trackId, gain) {
|
|
3245
|
+
this.native.setTrackGain(trackId, gain);
|
|
3246
|
+
}
|
|
3247
|
+
/** Set a track's mute flag via an undoable edit (a muted track is silent). */
|
|
3248
|
+
setTrackMute(trackId, mute) {
|
|
3249
|
+
this.native.setTrackMute(trackId, mute);
|
|
3250
|
+
}
|
|
3251
|
+
/** Set a track's solo flag via an undoable edit (when any track is soloed, only soloed tracks sound). */
|
|
3252
|
+
setTrackSolo(trackId, solo) {
|
|
3253
|
+
this.native.setTrackSolo(trackId, solo);
|
|
3254
|
+
}
|
|
3255
|
+
/** Set a track's stereo balance in [-1, +1] (0 = center) via an undoable edit. */
|
|
3256
|
+
setTrackPan(trackId, pan) {
|
|
3257
|
+
this.native.setTrackPan(trackId, pan);
|
|
3258
|
+
}
|
|
3206
3259
|
/** Undo the most recent edit. */
|
|
3207
3260
|
undo() {
|
|
3208
3261
|
this.native.undo();
|
|
@@ -3492,6 +3545,22 @@ var Project = class _Project {
|
|
|
3492
3545
|
setMarker(markerId, ppq, name) {
|
|
3493
3546
|
return this.native.setMarker(markerId, ppq, name);
|
|
3494
3547
|
}
|
|
3548
|
+
/**
|
|
3549
|
+
* Add or replace a marker from a full {@link ProjectMarker}, including its
|
|
3550
|
+
* {@link MarkerKind} and (for key signatures) the key. Pass `id` 0 to allocate
|
|
3551
|
+
* a new id; returns the stable marker id.
|
|
3552
|
+
*/
|
|
3553
|
+
setMarkerEx(marker) {
|
|
3554
|
+
return this.native.setMarkerEx(marker);
|
|
3555
|
+
}
|
|
3556
|
+
/** Read a project marker by index (0-based, in stored order). */
|
|
3557
|
+
markerByIndex(index) {
|
|
3558
|
+
return this.native.markerByIndex(index);
|
|
3559
|
+
}
|
|
3560
|
+
/** Number of markers in the project. */
|
|
3561
|
+
markerCount() {
|
|
3562
|
+
return this.native.markerCount();
|
|
3563
|
+
}
|
|
3495
3564
|
/** Number of tracks in the project. */
|
|
3496
3565
|
trackCount() {
|
|
3497
3566
|
return this.native.trackCount();
|
|
@@ -3747,6 +3816,15 @@ var RealtimeEngine = class {
|
|
|
3747
3816
|
seekSample(timelineSample, renderFrame = -1) {
|
|
3748
3817
|
this.native.seekSample(timelineSample, renderFrame);
|
|
3749
3818
|
}
|
|
3819
|
+
/**
|
|
3820
|
+
* Snaps every in-flight parameter ramp (engine-level smoothed params, mixer
|
|
3821
|
+
* lane fader/pan/gate, bus gains) to its target value. Offline renders call
|
|
3822
|
+
* this after a priming process() block so the first audible block renders at
|
|
3823
|
+
* settled values instead of ramping in from defaults.
|
|
3824
|
+
*/
|
|
3825
|
+
settleParameters() {
|
|
3826
|
+
this.native.settleParameters();
|
|
3827
|
+
}
|
|
3750
3828
|
seekPpq(ppq, renderFrame = -1) {
|
|
3751
3829
|
this.native.seekPpq(ppq, renderFrame);
|
|
3752
3830
|
}
|
|
@@ -3835,9 +3913,31 @@ var RealtimeEngine = class {
|
|
|
3835
3913
|
}
|
|
3836
3914
|
setTrackLanes(lanes) {
|
|
3837
3915
|
this.native.setTrackLanes(
|
|
3838
|
-
lanes.map((lane) =>
|
|
3916
|
+
lanes.map((lane) => {
|
|
3917
|
+
if (typeof lane === "number") {
|
|
3918
|
+
return { trackId: lane };
|
|
3919
|
+
}
|
|
3920
|
+
if (!lane.sends) {
|
|
3921
|
+
return lane;
|
|
3922
|
+
}
|
|
3923
|
+
return {
|
|
3924
|
+
...lane,
|
|
3925
|
+
sends: lane.sends.map((send) => ({
|
|
3926
|
+
...send,
|
|
3927
|
+
// Post-fader (0) is the default for an omitted sendTiming.
|
|
3928
|
+
sendTiming: send.sendTiming === void 0 ? 0 : sendTimingCode(send.sendTiming)
|
|
3929
|
+
}))
|
|
3930
|
+
};
|
|
3931
|
+
})
|
|
3839
3932
|
);
|
|
3840
3933
|
}
|
|
3934
|
+
/**
|
|
3935
|
+
* Keys one insert of a lane strip from another lane's post-strip audio
|
|
3936
|
+
* (ducking/sidechainRouter inserts). sourceTrackId 0 removes the binding.
|
|
3937
|
+
*/
|
|
3938
|
+
setLaneSidechain(trackId, insertIndex, sourceTrackId) {
|
|
3939
|
+
this.native.setLaneSidechain(trackId, insertIndex, sourceTrackId);
|
|
3940
|
+
}
|
|
3841
3941
|
setTrackBuses(buses) {
|
|
3842
3942
|
this.native.setTrackBuses(buses);
|
|
3843
3943
|
}
|
|
@@ -3893,6 +3993,43 @@ var RealtimeEngine = class {
|
|
|
3893
3993
|
setMasterStripInsertBypassed(insertIndex, bypassed, resetOnBypass = false) {
|
|
3894
3994
|
this.native.setMasterStripInsertBypassed(insertIndex, bypassed, resetOnBypass);
|
|
3895
3995
|
}
|
|
3996
|
+
/**
|
|
3997
|
+
* Changes one track-strip insert parameter in realtime, addressed by the
|
|
3998
|
+
* processor's JSON-key parameter name (see {@link masteringInsertParamInfo}).
|
|
3999
|
+
* Applied at the next block head via the engine command queue; safe during
|
|
4000
|
+
* playback. Throws if the track, insert, or name is unknown, the param is not
|
|
4001
|
+
* realtime-safe, or the command queue is full.
|
|
4002
|
+
*/
|
|
4003
|
+
setTrackStripInsertParamByName(trackId, insertIndex, paramName, value) {
|
|
4004
|
+
this.native.setTrackStripInsertParamByName(trackId, insertIndex, paramName, value);
|
|
4005
|
+
}
|
|
4006
|
+
/** Master-strip counterpart of {@link setTrackStripInsertParamByName}. */
|
|
4007
|
+
setMasterStripInsertParamByName(insertIndex, paramName, value) {
|
|
4008
|
+
this.native.setMasterStripInsertParamByName(insertIndex, paramName, value);
|
|
4009
|
+
}
|
|
4010
|
+
/** Sets a track lane strip's pan position in realtime (glitch-free). */
|
|
4011
|
+
setTrackStripPan(trackId, pan) {
|
|
4012
|
+
this.native.setTrackStripPan(trackId, pan);
|
|
4013
|
+
}
|
|
4014
|
+
/** Sets a track lane strip's pan law in realtime. */
|
|
4015
|
+
setTrackStripPanLaw(trackId, panLaw) {
|
|
4016
|
+
this.native.setTrackStripPanLaw(trackId, panLawCode(panLaw));
|
|
4017
|
+
}
|
|
4018
|
+
/** Sets a track lane strip's pan mode in realtime. */
|
|
4019
|
+
setTrackStripPanMode(trackId, panMode) {
|
|
4020
|
+
this.native.setTrackStripPanMode(trackId, panModeCode(panMode));
|
|
4021
|
+
}
|
|
4022
|
+
/** Sets a track lane strip's dual-pan left/right positions in realtime. */
|
|
4023
|
+
setTrackStripDualPan(trackId, leftPan, rightPan) {
|
|
4024
|
+
this.native.setTrackStripDualPan(trackId, leftPan, rightPan);
|
|
4025
|
+
}
|
|
4026
|
+
/**
|
|
4027
|
+
* Sets a track lane strip's inter-channel alignment delay (whole samples).
|
|
4028
|
+
* Adjusts strip latency, so PDC and reported graph latency are refreshed.
|
|
4029
|
+
*/
|
|
4030
|
+
setTrackStripChannelDelaySamples(trackId, delaySamples) {
|
|
4031
|
+
this.native.setTrackStripChannelDelaySamples(trackId, delaySamples);
|
|
4032
|
+
}
|
|
3896
4033
|
createClipPageProvider(numChannels, numSamples, pageFrames) {
|
|
3897
4034
|
const id = this.native.createClipPageProvider(numChannels, numSamples, pageFrames);
|
|
3898
4035
|
return new ClipPageProvider(this, id);
|
|
@@ -3982,6 +4119,30 @@ var RealtimeEngine = class {
|
|
|
3982
4119
|
drainMeterTelemetry(maxRecords = 1024) {
|
|
3983
4120
|
return this.native.drainMeterTelemetry(maxRecords);
|
|
3984
4121
|
}
|
|
4122
|
+
/**
|
|
4123
|
+
* Drains pending meter telemetry as per-plane (wide) records for a surround
|
|
4124
|
+
* target. Use this for a surround mix target; {@link drainMeterTelemetry}
|
|
4125
|
+
* stays the stereo fast path. The two share one queue — call only one per
|
|
4126
|
+
* target. The live AudioWorklet path owns the queue via the stereo drain, so
|
|
4127
|
+
* this wide drain is for an offline (non-worklet) engine instance; per-plane
|
|
4128
|
+
* surround meters are not delivered over the live worklet meter ring.
|
|
4129
|
+
*/
|
|
4130
|
+
drainMeterTelemetryWide(maxRecords = 1024) {
|
|
4131
|
+
return this.native.drainMeterTelemetryWide(maxRecords);
|
|
4132
|
+
}
|
|
4133
|
+
/**
|
|
4134
|
+
* Enables per-target spectrum + vectorscope capture. @param intervalFrames is
|
|
4135
|
+
* the minimum render-frame gap between snapshots (0 disables). @param bandCount
|
|
4136
|
+
* is the FFT band resolution (1..64); changing it re-prepares the tap. Returns
|
|
4137
|
+
* the band count actually applied.
|
|
4138
|
+
*/
|
|
4139
|
+
configureScopeTelemetry(intervalFrames, bandCount) {
|
|
4140
|
+
return this.native.configureScopeTelemetry(intervalFrames, bandCount);
|
|
4141
|
+
}
|
|
4142
|
+
/** Drains pending spectrum + vectorscope snapshots (per mix target). */
|
|
4143
|
+
drainScopeTelemetry(maxRecords = 1024) {
|
|
4144
|
+
return this.native.drainScopeTelemetry(maxRecords);
|
|
4145
|
+
}
|
|
3985
4146
|
destroy() {
|
|
3986
4147
|
this.native.delete();
|
|
3987
4148
|
}
|
|
@@ -4554,6 +4715,7 @@ export {
|
|
|
4554
4715
|
EXPECTED_PROJECT_ABI_VERSION,
|
|
4555
4716
|
ErrorCode,
|
|
4556
4717
|
KeyProfile,
|
|
4718
|
+
MarkerKind,
|
|
4557
4719
|
Mixer,
|
|
4558
4720
|
Mode,
|
|
4559
4721
|
PitchClass as Pitch,
|
|
@@ -4647,6 +4809,7 @@ export {
|
|
|
4647
4809
|
masteringDynamicsGate,
|
|
4648
4810
|
masteringDynamicsTransientShaper,
|
|
4649
4811
|
masteringInsertNames,
|
|
4812
|
+
masteringInsertParamInfo,
|
|
4650
4813
|
masteringInsertParamNames,
|
|
4651
4814
|
masteringPairAnalysisNames,
|
|
4652
4815
|
masteringPairAnalyze,
|
|
@@ -4655,6 +4818,7 @@ export {
|
|
|
4655
4818
|
masteringPresetNames,
|
|
4656
4819
|
masteringProcess,
|
|
4657
4820
|
masteringProcessStereo,
|
|
4821
|
+
masteringProcessorCatalog,
|
|
4658
4822
|
masteringProcessorNames,
|
|
4659
4823
|
masteringRepairDeclick,
|
|
4660
4824
|
masteringRepairDeclip,
|
|
@@ -4733,6 +4897,7 @@ export {
|
|
|
4733
4897
|
spectralBandwidth,
|
|
4734
4898
|
spectralCentroid,
|
|
4735
4899
|
spectralContrast,
|
|
4900
|
+
spectralEdit,
|
|
4736
4901
|
spectralFlatness,
|
|
4737
4902
|
spectralRolloff,
|
|
4738
4903
|
splitSilence,
|