audio

@audio/effect-wah1.2.0

Wah-wah

Wah-wah — swept resonant bandpass filter

Status
calibrated
Updated
Family
effect, 26 packages under it
Plugin
wah, effect, streaming, 6 parameters
Category
effects
Licence
MIT
Dependencies
none
Downloads
3,117 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').wah()

// "Local Forecast" by Kevin MacLeod (incompetech.com), CC BY 4.0, incompetech.com/music/royalty-free/faq.html

Parameters

  • effect
  • streaming
  • tail
rate
1.5 Hz
0.05 to 10 Hz
depth
0.8 oct
0 to 3 oct
fc
1000 Hz
200 to 3000 Hz
Q
5
0.5 to 20
mode
auto, manual
phase
0 deg
−180 to 180 deg
import wah from '@audio/effect-wah'

Swept resonant bandpass filter — auto (LFO) or fixed frequency mode.

rate LFO rate in Hz (default 1.5) · depth sweep depth in octaves, 0–3 (default 0.8) · fc center frequency Hz (default 1000) · Q resonance (default 5) · mode 'auto' LFO or 'manual' fixed (default 'auto') · phase LFO phase of each channel ahead of the one before, in 'auto' mode, degrees −180–180 (default 0, the channels together; at 180 they sweep opposite ways) · channel index of the channel this call processes (default 0) · fs sample rate

In stereo, each channel keeps its own params object with its channel index (the /audio factory does this). Channel 0 never shifts, so a mono signal is the same at any phase. Channel c runs c × phase ahead, so at 90 channel 4 is a whole cycle on and moves with channel 0. A change of phase glides across the next call.

import wah from '@audio/effect-wah'

let p = { rate: 1.5, depth: 0.8, fc: 1000, Q: 5, fs: 44100 }
for (let buf of stream) wah(buf, p)

Use when: classic wah sound, filter sweeps
Not for: signal-driven wah (use autoWah)


Part of @audio/effect — the effect family umbrella. This README is generated from the umbrella docs.

MIT © audiojs