Last active
December 31, 2021 08:12
-
-
Save catfact/71ab2914fb7f64d2129dcf1141bb3547 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Routine { | |
SynthDef.new(\buf_del_lpf_fb, { | |
arg buf, | |
in=0, out=0, | |
amp=1.0, pan=0, fb = 0.7, | |
fc=4000, rq=1, time=1.0, timelag=0.5; | |
var del, loop; | |
loop = LocalIn.ar(1); | |
time = Ramp.kr(time, timelag); | |
del = BufDelayL.ar(b.bufnum, SoundIn.ar(in) + loop, time); | |
LocalOut.ar(RLPF.ar(del * fb, fc, rq)); | |
Out.ar(0, Pan2.ar(del, 0)); | |
}).send(s); | |
b = Buffer.alloc(s, s.sampleRate * 10, 1); | |
s.sync; | |
z = Synth.new(\buf_del_lpf_fb, [\buf, b.bufnum], s); | |
inf.do({ | |
t = 1 * (1+9.rand) / (1+11.rand); | |
t.postln; | |
z.set(\time, t); | |
(1 + 4.rand).wait; | |
}); | |
}.play; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment