Forums > MaxMSP

Multi-dimensional data storage & recall.

Oct 11 2010 | 9:57 am

Hello there.

I have a problem which I am having trouble finding the answer. I wish to have a 3 dimensional data matrix, i.e. multiple instances of and x y matrix within one object. I need to be able to set the value of each entry individually (a la coll, but with the added option of which ‘layer’ to place it on). I also need to be able to dump each ‘layer’ of the data matrix individually.

Multiple colls cause major problems. The Jitter matrix doesn’t seem to be dumpable in terms of data at all. I’ve been looking at FTM but the only 3d matrices seem to be receivers of controller data and not data collections as such, although I may be wrong on this… I cannot seem how to work it out however.

Any help would be much appreciated! Thank you.

Oct 11 2010 | 11:36 am

hi tsuki,

had the same problem years ago.
i solved it by using javascript.
here you can use multidimesional arrays.

the disadvantage is: javascript is slow.
its good for managing data structures,
bad for realtime operations.


Oct 11 2010 | 12:09 pm

Cheers Tom, I’m slightly clueless on the Javascript and it needs to be quick in realtime too!

I think the answer lies in FTM as the matrices are multi-dimensional and FTM is lightening quick. Sadly, apart form basic tutorials, all object descriptions are not very well described, for non code-programmers anyway, so it may be very tough to learn how to do a very specific thing.

Oct 11 2010 | 1:05 pm

hello tsuki,

if you only need a 3 dimensional structure,
it is also possible to use a ~poly structure
with an empty 2 dimensional coll inside.

each of your layer would be a single ~poly instance.

~poly structures are fast and max native.


Oct 11 2010 | 1:42 pm

Thank you Tom!

I really should have thought of that… the irony being that the 3d matrix will be in a poly~ already!

Oct 14 2010 | 5:50 pm

why not use a jitter matrix?

Viewing 6 posts - 1 through 6 (of 6 total)

Forums > MaxMSP