Transient-aware phase-locked vocoder (Röbel 2003) — preserves attacks on drums and plucks
- Status
- calibrated
- Updated
- Family
- stretch, 10 packages under it
- Plugin
stretch-transient, effect, whole signal, 1 parameter- Category
- time & pitch
- Licence
- MIT
- Dependencies
- 2 packages, all permissive: MIT
- Downloads
- 3,141 last month
- Tests
- 47 in audiojs/stretch's CI, passed at b844b07,
Parameters
factor- 1
- 0.25 to 4
Transient-aware phase-locked vocoder (Röbel, 2003). Measures spectral flux between frames; on a sharp onset resets to the original analysis phase instead of propagating it, preserving attack sharpness on drums and plucks. Implies phase locking.
import transient from '@audio/stretch-transient'
transient(data, { factor: 2 })
transient(data, { factor: 1.5, transientThreshold: 2.0 }) // less sensitive
| Param | Default | |
|---|---|---|
factor |
1 |
Time stretch ratio |
frameSize |
2048 |
FFT size (power of 2) |
hopSize |
frameSize/4 |
Hop between frames |
transientThreshold |
1.5 |
Spectral flux threshold (higher = fewer resets) |
Use when: the right default for most music — percussion, mixed sources.
Not for: voice/speech (use @audio/stretch-psola) or extreme stretch (use @audio/stretch-paulstretch).
Part of @audio/stretch.
License
MIT · ॐ