Skip to content

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.

Float32Array<ArrayBufferLike>

Mono audio signal

number[][]

[start, end) sample intervals, any order

boolean = true

Snap boundaries to zero crossings of y

Float32Array<ArrayBufferLike>

Concatenation of the (aligned) segments in caller order

On out-of-bounds or non-finite interval endpoints