@audio/ stretch-pvoc
Status calibrated
npm1.2.3licenseMIT
Phase vocoder time stretching — educational baseline without phase locking
Overview
- Install
- Updated
- Family
- stretch, 10 packages under it
- Tags
- time & pitch
Plain phase vocoder. Each FFT bin's phase advances at its instantaneous frequency. Magnitudes preserved, but inter-harmonic phase coherence is lost — complex signals get a diffuse, "underwater" character. Educational baseline.
import pvoc from '@audio/stretch-pvoc'
let out = pvoc(data, { factor: 2 })
| Param | Default | |
|---|---|---|
factor |
1 |
Time stretch ratio |
frameSize |
2048 |
FFT size (power of 2) |
hopSize |
frameSize/4 |
Hop between frames |
Use when: learning the phase-vocoder algorithm, simple tonal signals.
Not for: general music — use @audio/stretch-pvoc-lock or @audio/stretch-transient.
Part of @audio/stretch.
License
MIT · ॐ