delay buffer

npm install delay-buffer
12 downloads in the last month
npm install delay-buffer

A generic delay buffer. It can be used for reverb, echo, flanging, etc. This delay does not provide feedback. Look out for the feedback buffer! **

var Delay = require('delay');
  , d = 4000 // in samples not seconds
  , g = .75 // gain of the delay
  , delay = Delay(d, g);

  var sample = funhkySample(t);
  return delay(sample) // also accepts option gain param
npm loves you