i've got this synthdef for playing samples:
SynthDef(\sampleOutMono,{ arg out = 0, bufnum, rate=1, bufsize,
section=0, reset=5000, t_trig, amp=1;
var son, env;
son = BufRd.ar(1, bufnum, Phasor.ar(t_trig,
BufRateScale.kr(0) * rate, section, reset), 1);
env = EnvGen.kr(Env([0.1, 1.0, 1.0, 0.1], [0.5, bufsize-1.5,
1.0]), doneAction:2);
Out.ar(out, son * env * amp);
}).store;
i tried this pattern in order to control the deltas between
trigger-junps resp. to get reset, section the next event passed in:
Pmono(\sampleOutMono, *[
bufnum: b,
t_trig: Pseq([0, 1], inf),
bufsize: Pn(buflength, 1),
section: Pn(Pseq(~sections,
inf), 1),
reset: Pn(Pseq(~resets, inf), 1),
dur: ~seedpat, // a Prand in a Pseed
amp: 0.5,
addAction: 0,
]),
yet it doesn't work quite as i hoped ... in the scorefile, that i write
i see an instance of 'sampleOutMono' correctly being created but then
n_set gate 0 exactly after one second ... is there something obviously
wrong in this? or might it be something outside of this code?
thanks for any help!
stefan
_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users