Diff from Re: Dub Echo with Ping Pong by rukano (22 Feb'12 11:18) to Dub Echo by Bjorn Westergard (10 Aug'11 03:55)
name
description
code
SynthDef(\dubecho,{|in, out, length = 1, fb = 0.8, sep = 0.012|
var input = In.ar(in0, 2);
var output = input + Fb({
arg |feedback|; // this will contain the delayed output from the Fb unit
var left, right;
var magic = LeakDC.ar(feedback*fb + input);
magic = HPF.ar(magic, 400); // filter's on the feedback path
magic = LPF.ar(magic, 5000);
magic = magic.tanh; // and some more non-linearity in the form of distortion
#left, right = magic; // let's have named variables for the left and right channels
magic = [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 sevparately modulated delays to the left and right channels, which with a small "se;p" value creates a bit of spatialization
},length);
ReplaceOut.ar(out0, output);
}).addstore;
// Example aUs ageffecet bus
~bus = Bus.audio(s, 2);
~echo = Synth(\dubecho, [\in, ~bus, \length, TempoClock.default.tempo*(3/8), \fb, 0.7, \sep, 0.0012], addAction: \addToTail);
// send something
play{ Out.ar(~bus, LFGauss.ar(1, 0.1, loop:0, doneActihon:2) * Blip.afr(80, 8)) }ee;
// turn it off
~echo.frset(\gate, 0);
category tags
dub, echo, spacecho, feedback, code fork