soundbank-delay
Basic delay processor AudioNode with feedback, filter and wet/dry AudioParams.
Intended for use as a processor in soundbank, but it is compatible with any Web Audio API AudioNode set up.
Install
$ npm install soundbank-delay
API
var Delay =
Delay(audioContext)
Create and return an AudioNode instance.
node.sync (get/set)
When true
, the delay rate is multiplied by 60 / node.tempo
to allow beat sync.
AudioParam)
node.time (Time the feedback should be delayed by. Maximum value is 4 seconds.
If node.sync
is true
, this is the number or fraction of beats the feedback should be delayed by.
node.wet (AudioParam)
node.dry (AudioParam)
node.cutoff (AudioParam)
reverb.filterType
(get/set)
Defaults to "lowpass"
.
Can be any of the filters types specified by BiquadFilterNode
node.feedback (AudioParam)
Example
var Delay = var audioContext = var delay = delay delaytimevalue = 02 //secondsdelaywetvalue = 08delaydryvalue = 1delaycutoffvalue = 400 //Hzdelayfeedbackvalue = 06