audio

@audio/effect-vibrato2.1.0

Vibrato

Vibrato — pitch modulation via modulated delay line

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

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

Parameters

  • effect
  • streaming
  • tail
rate
5 Hz
0.1 to 15 Hz
depth
0.5
0 to 1
phase
0 deg
−180 to 180 deg
import vibrato from '@audio/effect-vibrato'

Pitch modulation via modulated delay line — periodic pitch wobble.

rate LFO rate in Hz (default 5) · depth modulation depth 0–1, scales a max ~6ms delay-time swing (default 0.5) · phase LFO phase of each channel ahead of the one before, degrees −180–180 (default 0, the channels together; at 180 their pitches swing 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 or depth glides across the next call; the delay ring holds depth 1 from the first call.

import vibrato from '@audio/effect-vibrato'

let p = { rate: 5, depth: 0.5, fs: 44100 }
for (let buf of stream) vibrato(buf, p)

Use when: vocal vibrato, string wobble, instrument simulation
Not for: amplitude variation (use tremolo)


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

MIT © audiojs