Tape-stop / spin-down — variable-rate playback with a decelerating read pointer
Listen
// "Local Forecast" by Kevin MacLeod (incompetech.com), CC BY 4.0, incompetech.com/music/royalty-free/faq.html
audio('/samples/music/modern/local-forecast.mp3').tapestop()
// "Local Forecast" by Kevin MacLeod (incompetech.com), CC BY 4.0, incompetech.com/music/royalty-free/faq.html
Parameters
at- 0 s
- 0 to 60 s
timefixed- 1 s
- 0.05 to 10 s
curvefixed- 1
- 0.25 to 4
directionfixed- stop, start
flutterfixed- 0
- 0 to 1
import tapeStop from '@audio/effect-tapestop'
Variable-rate playback with a decelerating (or accelerating) read pointer — turntable power-off / tape-deck stop, and the reverse spin-up. tapeStop works on the whole buffer in one call. tapestopStream from @audio/effect-tapestop, and the /audio factory with it, give the same stop over a stream, at seconds into it: they run as many frames late as flutter can speed the tape past the input at the stop's start (lead(fs, options); none without flutter or in 'start').
at when the stop/start begins, in seconds (default 0) · time ramp duration in seconds (default 1) · curve speed-profile exponent — 1 = physical constant-torque linear decay, >1 = faster initial drop, <1 = held then dropping (default 1) · direction 'stop' or 'start' (default 'stop') · flutter 0–1 random rate wobble during the ramp (default 0)
import tapeStop from '@audio/effect-tapestop'
tapeStop(buf, { at: 2, time: 1.5, direction: 'stop', fs: 44100 })
Use when: DJ/turntable power-off, tape-deck stop/start, transition sweeps
Not for: continuous pitch modulation (use vibrato) or tempo-locked time-stretch
Part of @audio/effect — the effect family umbrella. This README is generated from the umbrella docs.
MIT © audiojs