Found this SynthDef while playing around with loop. If the name suggests what it does, I’m interested to get it to work.
I believe the initial problem was deprecation of AudioIn in sclang3? I actually replaced AudioIn with the new SoundIn but still couldn’t get any audio output from the audioin player.
The code in audioin.scd:
sus = sus * blur;
freq = In.kr(bus, 1);
freq = [freq, freq+fmod];
osc=SoundIn.ar(channel);
env=EnvGen.ar(Env(times: [0.01, (sus - 0.01), 0.01],levels: [0, 1, 1, 0],curve: 'lin'), doneAction: 0);
osc=(osc * env);
osc = Mix(osc) * 0.5;
osc = Pan2.ar(osc, pan);
ReplaceOut.ar(bus, osc)