recurrenceLoop
recurrenceLoop(
audioBuffer,options?):Promise<any>
Defined in: packages/pleco-xa/src/loop/recurrence.js:40
Detect a loop via recurrence-matrix analysis.
Parameters
Section titled “Parameters”audioBuffer
Section titled “audioBuffer”any
options?
Section titled “options?”hopLength?
Section titled “hopLength?”number
maxFrames?
Section titled “maxFrames?”number
frame cap (matrix cost is frames²)
minConfidence?
Section titled “minConfidence?”number
quality gate (audio-validated NCC)
boolean
add an RQA-path-derived candidate
snapToZero?
Section titled “snapToZero?”boolean
trim boundaries to zero crossings
Returns
Section titled “Returns”Promise<any>
{ loopStart, loopEnd, confidence, candidates, diagnostics }
Throws
Section titled “Throws”diagnostic errors naming the failed gate (never fabricates a result)