Frequency shifter — single-sideband shift via Hilbert transform
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').freqshift()
// "Local Forecast" by Kevin MacLeod (incompetech.com), CC BY 4.0, incompetech.com/music/royalty-free/faq.html
Parameters
shift- 100 Hz
- −2000 to 2000 Hz
mix- 1
- 0 to 1
tapsfixed- 65
- 17 to 255
import frequencyShifter from '@audio/effect-freqshift'
Single-sideband frequency shift via Hilbert transform. Every frequency moves by a constant offset (unlike ring mod, which produces sum/difference pairs; unlike pitch shifter, which preserves harmonic ratios). Breaks harmonic relationships → inharmonic, metallic, clangorous.
shift shift in Hz (default 100 · positive = up, negative = down) · mix wet/dry 0–1 (default 1) · taps Hilbert FIR length, must be odd (default 65) · fs sample rate
import frequencyShifter from '@audio/effect-freqshift'
let p = { shift: 200, fs: 44100 }
for (let buf of stream) frequencyShifter(buf, p)
Use when: clangorous barber-pole tones, Bode-style modulation, Moog-style frequency shifting
Not for: musical transposition (use pitch shifter or the @audio/shift package)
Part of @audio/effect — the effect family umbrella. This README is generated from the umbrella docs.
MIT © audiojs