{
   "labels" : [
      "dub",
      "echo",
      "spacecho",
      "feedback"
   ],
   "is_private" : null,
   "id" : "1-h",
   "code" : "SynthDef(\\dubecho,{|length = 1, fb = 0.8, sep = 0.012|\r\nvar input = In.ar(0, 2);\r\nvar output = input + Fb({\r\n\r\narg feedback; // this will contain the delayed output from the Fb unit\r\n\r\nvar left,right;\r\nvar magic = LeakDC.ar(feedback*fb + input);\r\nmagic = HPF.ar(magic, 400); // filter's on the feedback path\r\nmagic = LPF.ar(magic, 5000);\r\nmagic = magic.tanh; // and some more non-linearity in the form of distortion\r\n#left, right = magic; // let's have named variables for the left and right channels\r\nmagic = [DelayC.ar(left, 1, LFNoise2.ar(12).range(0,sep)), DelayC.ar(right, 1, LFNoise2.ar(12).range(sep,0))]; // In addition to the main delay handled by the feedback quark, this adds separately modulated delays to the left and right channels, which with a small \"sep\" value creates a bit of spatialization\r\n\r\n},length);\r\nReplaceOut.ar(0, output);\r\n}).store;\r\n\r\n// Example Usage\r\n~echo = Synth(\\dubecho, [\\length, TempoClock.default.tempo*(3/8), \\fb, 0.7, \\sep, 0.0012], addAction: \\addToTail);\r\n~echo.free;\r\n~echo.set(\\gate, 0);",
   "name" : "Dub Echo",
   "author" : "Bjorn Westergard",
   "ancestor_list" : [],
   "description" : "A pretty simple Dub echo, approximating something like the [Space Echo](https://secure.wikimedia.org/wikipedia/en/wiki/Space_Echo) made popular by King Tubby, Scientist, Lee Perry, et al. Built around the Feedback Quark, though I'm not really leaning on the functionality it provides over a simple LocalOut-based feedback path."
}
