I need some help from Live-Performers!
I am trying to do a live recording (into a buffer) of sections of a live performance (say about 6 seconds each time), so that afterwards I can do other stuff to the recorded buffers (hall, pitch shifting etc.). I want to have this operation saved in a synth, so that I can start new synths for doing this whenever I want during the performance. I have tried this with LocalBuf
:
(
SynthDef(\rec, {
var sig, buf = LocalBuf.new(SampleRate.ir * 6, 2).clear;
BufWr.ar(SoundIn.ar([0, 1]), buf, Phasor.ar(1, BufRateScale.kr(buf) * 1, 0, BufFrames.kr(buf)));
sig = PlayBuf.ar(2, buf, 1, Impulse.kr(0.1));
Out.ar(0, sig ! 2)
}).add
)
but this is some how acting wired for me! The playback happens a couple of times at the beginning of synth-creation, and then it is gone. I want it to be around, until I delete the synth manually (how, I don’t know yet either).
Any tips, and helps is highly appreciated!