node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org ยป


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