Hi all,
I’m new to sc (see note below) and am currently trying to record incoming audio to disc. I have a question that is really basic, but a quick answer would save me ages trying to work it out from the docs. I play the audio coming in from a mic like this:
(
ServerOptions.inDevices.postln;
s.meter;
SynthDef(\helpAudioIn, { |out|
var input = AudioIn.ar(2);
Out.ar(out, CombN.ar(input * -25.dbamp, 0.2, 0.2, 0.01))
}).play
)
You can see that I’m putting delays on the outputted signal. That’s to prevent feedback into the mic.
I then record the audio to disc something like this;
r = Recorder.new(s);
r.record(<path to file>, duration:30, numChannels:1)
My question is, what do I need to change so that the input is not outputted again but goes to a buffer, which is then used by Record to create the sampled recording on disc?
Later on I will be adding functions to play back the recordings from the disc in the usual way, piping the results to one of my output devices, but right now I need the audio coming in from the mic to go somewhere where it is available to record but isn’t one of the output devices.
Apologies if that seems really basic. I did work with Supercollider more than 15 years ago, and am just in the first few days of getting back into it, so any help would be greatly appreciated.
Andy