closeGapRight
closeGapRight(
audioBuffer,loopData,opts?):object
Defined in: packages/pleco-xa/src/playback/ops.js:460
Close a detected gap by removing it and rescaling the loop end to the shorter buffer (content after the gap keeps its absolute position relative to the loop end).
Parameters
Section titled “Parameters”audioBuffer
Section titled “audioBuffer”any
loopData
Section titled “loopData”any
Returns
Section titled “Returns”object
buffer
Section titled “buffer”buffer:
any
gapSize
Section titled “gapSize”gapSize:
number
newLoopEnd
Section titled “newLoopEnd”newLoopEnd:
number