audioJS

@audio/effect-freqshift

Status calibrated

npm1.1.6licenseMIT

Frequency shifter — single-sideband shift via Hilbert transform

Overview

Install
Updated
Family
effect, 26 packages under it
Tags
shape
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