vibrato
Web Audio API vibrato effect.
Installation
Install the package with NPM:
$ npm install vibrato
Usage
The package exposes a function that accepts an AudioContext as the first argument, and an AudioParam as the second. Optionally, an object specifying rate
and depth
can also be provided as the third argument. When called, the function will apply a vibrato effect to the AudioParam.
Example:
; let context = new windowAudioContext || windowwebkitAudioContext;let oscillator = context;oscillator;oscillatorstart; ;
Furthermore, as a convenient shorthand, you can pass in an OscillatorNode directly:
;