[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] re: updating arrays in Pbind
Thanks Julian that works well,
is there a
way of controlling each value of the array dynamically I am
working on a project which is getting osc messages from
Processing. Really I am looking for the most efficient way to
update Pbind.
Thanks
Simon
There are a number of ways you can do this.
The easiest would be to use a Plazy instead of a Pfunc, only problem
is that the Plazy does not pass its event to the function currently.
so the other way is this:
// instead of a Pdef use a Pbindef
Pbindef(\myPdef,
\midinote, 60,
\dur, Pseq ([1,1],inf),
\volu, Pseq ([1,1],inf),
\bus, Prand ([0, 1],inf),
\decay, Pseq([0.5,0.5],inf),
\instrument, \sinew
)
// to set the note, you write:
Pbindef(\myPdef, \midinote, 67);
Pbindef(\myPdef, \midinote, Pseq([67, 70], inf));
(for more information see Pbindef helpfile)