audio

@audio/effect-freqshift1.2.0

Frequency shifter

Frequency shifter — single-sideband shift via Hilbert transform

Status
calibrated
Updated
Family
effect, 26 packages under it
Plugin
freqshift, effect, streaming, 3 parameters
Category
effects
Licence
MIT
Dependencies
none
Downloads
3,134 last month
Tests
138 in audiojs/effect's CI, passed at 5ff5a84,

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

  • effect
  • streaming
  • latency
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