Hi all,
I'm trying to record to HDD the first input and I found myself in trouble
when I tried to transform this:
(
{
var fade = 1;
// record fade in & fade out duration
// allocate a Buffer
~bufferTemp = Buffer.alloc(
Server.default,
~sampleRate * ~recduration, // allocate size
1);
// single channel
e =
EnvGen.ar(Env([0.0,1.0,1.0,0.0],[fade,~recduration-(fade*2),fade])); //
fade in - fade out
~recordingTemp =
RecordBuf.ar(
SoundIn.ar(0)*e,
// first input channel *
envelope
~bufferTemp,
// store recording in buffer
loop: 0,
// do not loop
doneAction: 2
// free synth when done.
);
0.0;
}.play;
)
to a SynthDef with a Routine to start rec, sart Synth, stop rec:
(
// Record audio from the first input channel
SynthDef(\record,{
var fade = 1;
// record fade in & fade out duration
// allocate a Buffer
~bufferTemp = Buffer.alloc(
Server.default,
~sampleRate * ~recduration, // allocate size
1);
// single channel
e =
EnvGen.ar(Env([0.0,1.0,1.0,0.0],[fade,~recduration-(fade*2),fade])); //
fade in - fade out record
~recordingTemp =
RecordBuf.ar(
SoundIn.ar(0)*e,
// first input
channel * envelope
~bufferTemp,
// store recording in buffer
loop: 0,
// do not loop
doneAction: 2
// free synth when done.
);
0.0;
Out.ar(0,
SoundIn.ar(0)*e);
}).add;
)
(Routine{var name = "Recordings/out"++~recNum++".wav",cartella, wav;
s.record(path: name.resolveRelative);
// Start rec
Synth(\record);
~recduration.wait;
// Rec duration
s.stopRecording;
// Stop rec
}.play
)
The thing is that this will record the SC *output* and not the input.. I
found only ex with the first case, when the function is evaluated directly,
but what if I want to use a SynthDef?
Thank you in advance and sorry if this question was already asked
--
Sent from:
http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/SuperCollider-Users-New-Use-this-f2676391.html_______________________________________________
sc-users mailing list
info (subscription, etc.):
http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspxarchive:
https://listarc.bham.ac.uk/marchives/sc-users/search:
https://listarc.bham.ac.uk/lists/sc-users/search/