Forums > MaxMSP

Newbie question on tables

Oct 15 2009 | 7:25 pm

I have this stream of ints that I’m trying to store into a table.

What’s the easiest way to generate the incrementing index required for each stored value?

Or am I going about this the wrong way and is there a way to convert this into a list which can then be fed to the table?

Thanks in advance,

Oct 15 2009 | 8:22 pm

Check out load mode.

Sending a table the ‘load’ message will put it in load mode, which means that every incoming number will be stored in the table.

Check out the table ref for more info.

All the best,

Oct 15 2009 | 8:23 pm

That’s exactly what I was looking for.

I went thru the ref page but for some reason totally missed this.



Feb 03 2010 | 5:02 pm

I have kind of the same problem. I want to store a stream of data (integers) into a list or a table, but I don’t know beforehand, how many values the stream will contain. Thus, the zl object in group mode isn’t appropriate. Setting a table into load mode doesn’t help either, because I end up either having loads of annoying zeros and the end (if the stream was shorter than the size of the table), or the last part of the stream will be clipped away (if it was longer). What is the way to solve that problem?

Thank you beforehand

Feb 03 2010 | 5:35 pm

you CAN do this with "zl group":

-- Pasted Max Patch, click to expand. --

Feb 03 2010 | 9:16 pm

thank you ever so much. The missing detail was, that a bang message outputs the list stored so far in the "zl group" object. It works now. Thank you again.

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

Forums > MaxMSP