@audio/effect-freqshift
v1.1.5
Published
Frequency shifter — single-sideband shift via Hilbert transform
Readme
@audio/effect-freqshift

Frequency shifter — single-sideband shift via Hilbert transform
npm install @audio/effect-freqshiftimport 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'
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
