LFO tremolo

Connect an oscillator to an AudioParam and modulate gain at audio-clock precision.

npx web-audio-api lfo rate=5 depth=0.5 -d 10s
rate=<hz>
LFO frequency
depth=<0..1>
tremolo depth
wave=<type>
sine, square, triangle, or sawtooth
-d, --duration <time>
run time (CLI accepts s/m/h suffixes; default: 30s)
ready

This is an LFO tremolo effect: a low frequency oscillator modulates a carrier gain at audio-clock precision, with adjustable rate, depth, and LFO waveform. Hear the tremolo in the browser, or render the same modulation graph from the Node CLI.