cacophony
    Preparing search index...

    Interface TimeStretchOptions

    Options for timeStretch.

    interface TimeStretchOptions {
        analysisHop?: number;
        fftSize?: number;
        randomSeed?: number;
        tol?: number;
    }
    Index
    analysisHop?: number

    Analysis hop a_a (samples). Synthesis hop is a_s = round(a_a·factor) (Průša 2022, Eq.7). Default = fftSize/4 (75% overlap, COLA-exact for Hann).

    fftSize?: number

    FFT length / window length M (samples), power of two (fft.js radix-4 constraint). Průša 2022 evaluation used M=8192; for general short cacophony buffers a smaller window keeps frequency-resolution-vs-time-resolution balanced. Default 2048 (matches the project's phase-vocoder block size).

    randomSeed?: number

    Deterministic RNG seed for the random phase assigned to insignificant bins (Algorithm 1 line 3). Default 1 — deterministic so tests are reproducible.

    tol?: number

    Relative tolerance tol for the significant-bin set; abstol = tol·max(s) (Průša 2022, p.3, Algorithm 1 line 1). Default 1e-6 (paper value).