[PD] passing integers

Krzysztof Czaja czaja at chopin.edu.pl
Thu Jan 17 12:03:24 CET 2002


hi,

how about passing symbols, possibly written as somehow prefixed octal,
hex or binary numbers, and then atoi()/strtol()/sscanf()/whatever()
them to integers?

But I wonder:  if there was a huge amount of different masks generated
during a Pd session, how this would affect the overall performance?
What I mean is that the penalty of symbol hash table slot chaining
could get high.

If this is true, then I wonder:  is the above a viable reason for
giving users a way (like sending a message to pd) to clear symbol
table of currently unused (not bound, etc.) elements?

Krzysztof

Orm Finnendahl wrote:
...
> I'm trying to use integers in pd externals, but found out, there is no
> such type. Therefor it seems to be impossible to deal with big integer
> numbers (ca. 2 ^ 20 and above). Since I'm using them for masking
> purposes, the numbers have to be transmitted correctly between objects
> and I would like to use at least 32-bit precision



More information about the Pd-list mailing list