# StretchProcessor · API · zvuk

zvuk v1.14.1 · MIT · https://zvuk.schmooky.dev/api/StretchProcessor/

Pitch-preserving time-stretch via overlap-add granular synthesis with
cross-correlation alignment (a SOLA-style approximation).

Used to render an offline stretched copy of an AudioBuffer at load time —
not realtime. For realtime tempo control, see the (planned) AudioWorklet
implementation.

stretchFactor > 1 = play faster (shorter buffer).
stretchFactor < 1 = not currently supported (use rate via PlaybackRate).

[← API](/api/)

Class

# StretchProcessor

Pitch-preserving time-stretch via overlap-add granular synthesis with cross-correlation alignment (a SOLA-style approximation). Used to render an offline stretched copy of an AudioBuffer at load time — not realtime. For realtime tempo control, see the (planned) AudioWorklet implementation. stretchFactor > 1 = play faster (shorter buffer). stretchFactor < 1 = not currently supported (use rate via PlaybackRate).

## Members

-   constructor
-   process
-   stretchBuffer
