audioJS

@audio/stretch-paulstretch

Status calibrated

npm1.2.2licenseMIT

Paulstretch — Paul Nasca's extreme stretch (8×+) for ambient/drone material

Overview

Install
Updated
Family
stretch, 10 packages under it

Extreme time stretching via phase randomization (Nasca, 2006). Preserves magnitudes but replaces all phases with a deterministic PRNG, producing smooth, dreamlike textures. Designed for large factors.

import paulstretch from '@audio/stretch-paulstretch'

paulstretch(data, { factor: 8 })
paulstretch(data, { factor: 100, frameSize: 8192 })
Param Default
factor 8 Time stretch ratio (best >2×)
frameSize 4096 FFT size (larger = smoother)
seed 0x1f123bb5 PRNG seed (deterministic output)

Use when: ambient music, sound design, drone generation, 8×–1000× stretch.
Not for: small ratios (<2× sounds washed out), preserving rhythm or transients.

Part of @audio/stretch.

License

MIT · ॐ