audio

@audio/stretch-pvoc1.2.3

Phase vocoder time stretching

Phase vocoder time stretching — educational baseline without phase locking

Status
calibrated
Updated
Family
stretch, 10 packages under it
Plugin
stretch-pvoc, effect, whole signal, 1 parameter
Category
time & pitch
Licence
MIT
Dependencies
1 package, all permissive: MIT
Downloads
3,032 last month
Tests
47 in audiojs/stretch's CI, passed at b844b07,

Parameters

  • effect
  • whole signal
factor
1
0.25 to 4

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 · ॐ