OK so… trying to do this and failing so far. The following doesn’t get me any sound. (numFrames below for 60 seconds)
snipped from r.scd
ugenGraphFunc: {
|
in_In,
in_DelayTimeModulation,
out_Out,
param_DelayTime,
param_DelayTimeModulation,
visual_DelayTime
|
var buffer = Buffer.alloc(numFrames: 48000*60, numChannels: 1);
var sig_In = In.ar(in_In);
var sig_DelayTimeModulation = In.ar(in_DelayTimeModulation);
var delayTimeSpec = ControlSpec(0.5, 120, 'lin', 0, 4, "sec");
var delayTimeSec = delayTimeSpec.map(
delayTimeSpec.unmap(param_DelayTime) + (sig_DelayTimeModulation * param_DelayTimeModulation)
);
var delayed = BufDelayC.ar(buf: buffer.bufnum, in: sig_In, delaytime: delayTimeSec);
Out.ar(out_Out, delayed);
Out.kr(visual_DelayTime, delayTimeSec);
buffer.free;
}
examples show a server as a variable for Buffer.alloc, do I need to do that here or is the default server assumed? If I need it what do I use? (context.server? Server.default? )
b = Buffer.alloc(s,44100,1);