[PD] Best way to deal with many tables.

Mathieu Bouchard matju at artengine.ca
Sun Feb 22 00:37:03 CET 2009


On Fri, 20 Feb 2009, B. Bogart wrote:

> Basically the system I'm working on needs to store the RGB hists of many
> images (10,000 ideally, RAM permitting). RGB hists are concatenated into
> tables of 768 elements each.

[#store (10000 256 3 #)]   for int32 elements
[#store (10000 256 3 s #)] for int16 elements

or if you want triplets of histograms instead,

[#store (10000 3 256 #)]   for int32 elements
[#store (10000 3 256 s #)] for int16 elements

right-inlet has put_at message for writing into the array (instead of 
default behaviour of replacing the whole array).

left-inlet is very powerful at extracting data from the array. For 
example, just sending "3 1 # 30 42 77" will extract arrays #30, #42 and 
#77 as one message of size 3 by 256 by 3 (or 3 by 3 by 256).

  _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801, Montréal, Québec


More information about the Pd-list mailing list