[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] audio in with MOTU 828
Hello Brian,
Sunday, August 28, 2005, 2:09:42 AM, you wrote:
BEW> Does any one have an example SynthDef for pulling in audio from a MOTU
BEW> 828's line inputs (including Server.options)?
BEW> I tried the following but didn't get any audio:
BEW> Server.default.options.numOutputBusChannels = 18;
also set the number of input channels:
Server.default.options.numInputBusChannels = 8;
the line inputs should be the third till the eighth.
sincerely,
Marije
BEW> s = Server.default;
BEW> s.boot;
BEW> SynthDef("stereoIn", {arg outBus = 2, inBus = 0,
BEW> trim = 0, level = 1;
BEW> var left, right, numInChnl, inPut;
BEW> numInChnl = 2;
BEW> inPut = In.ar(inBus, numInChnl);
BEW> left = inPut.at(0);
BEW> right = inPut.at(1);
BEW> Out.ar(outBus, [left, right]);
BEW> }
BEW> ).send(s);
BEW> (
BEW> var stereoIn;
BEW> stereoIn = Synth.new("stereoIn", [\inBus, 9], s);
BEW> )