You are on page 1of 1

{

// below we declare our variables with 'var'


var input, fBLoopIn, fBLoopOut, processing;

// input is our sound source, a little noise


input = Crackle.ar(1.5,0.5);
// fBLoopIn is our feedback loop insertion point.
fBLoopIn = LocalIn.ar(1);
// in processing, we mix the input with the feedback loop
// here MouseX is being used to control the gain of the feedback signal
processing = input + LeakDC.ar((DelayN.ar(fBLoopIn, 0.5, 0.5, * MouseX.kr(0,1.05))));
// fBLoopOut is our feedback loop output point
fBLoopOut = LocalOut.ar(processing);

processing = Limiter.ar(processing, 0.8);

// Out routes the audio to the speakers. the square brackets send the output to both left
// and right channels.
Out.ar([0,1], processing);

}.play

You might also like