[PD] How to get the size of the signal vector
Frank Barknecht
barknech at ph-cip.uni-koeln.de
Sun May 26 11:32:38 CEST 2002
Hi,
I'm exploring the usefulness of the SndObj-library for the easement of
signal external development with flext.
SndObjUrl is http://www.may.ie/academic/music/musictec/SndObj/main.html
A SndObj can calculate common signals like oscil, phasor etc. It does
this on a signal vector much like PD does. The vectorsize of a SndObj
is set at the construction of the object, but it can change during the
object's lifetime, as well.
Now I think, that I must match the SndObj.vectorsize with that of the
signal vector in PD, hold in the t_signal struct as "int s_n"
My question is: How can I get this value in PD, before I enter the
dsp_perform routine i.e. at the external object's construction time,
not only at processing time?
And a related question is: When does this value change and how do I
recognize changes? I think, the [block] object changes the vector
size, doesn't it?
ciao,
--
Frank Barknecht _ ______footils.org__
More information about the Pd-list
mailing list