[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] re: updating arrays in Pbind
Thanks for that Julian, that will keep me
busy for a while.
This version seems better as it does not offset the
array when you load it.
Pdef(\myPdef).set(\durArray, [1, 1]);
Pdef(\myPdef,
Prout { |e|
Pbind(
\midinote, 60,
\dur, Pseq (e.durArray, inf),
\volu, Pseq ([1,1],inf),
\bus, Prand ([0, 1],inf),
\decay, Pseq([0.5,0.5],inf),
\instrument, \sinew
).embedInStream(e)
}
);
Pdef(\myPdef).play;
now you simply write to the array:
Pdef(\myPdef).envir.durArray[1] = 0.2;
Cheers
Simon