remix
remix(
y,intervals,options?):Float32Array<ArrayBufferLike>
Defined in: packages/pleco-xa/src/effects/index.js:258
Remix an audio signal by re-ordering time intervals. Intervals are concatenated in CALLER ORDER (no sorting — reordering, e.g. beat reversal, is the whole point) and, by default, interval boundaries snap to the nearest zero crossing of the whole signal (match_events semantics), never shrinking segments to their internal crossings.
Parameters
Section titled “Parameters”Float32Array<ArrayBufferLike>
Mono audio signal
intervals
Section titled “intervals”number[][]
[start, end) sample intervals, any order
options?
Section titled “options?”align_zeros?
Section titled “align_zeros?”boolean = true
Snap boundaries to zero crossings of y
Returns
Section titled “Returns”Float32Array<ArrayBufferLike>
Concatenation of the (aligned) segments in caller order
Throws
Section titled “Throws”On out-of-bounds or non-finite interval endpoints