Forums > MaxMSP

Arraylist & Jit.cellblock

March 11, 2013 | 10:50 am

Hello Max community.

I am trying to find if jit.cellblock can be manipulated as an array with shifting functions. What I want is to store my data in cells but after a specific time to delete the first entry and shift the rest of the cells one position up (so that the second entry becomes first).

Using jit.cellblock is not necessary in my occasion, I could also use another option? Please recommend to me the best – I am going to use this with text messages, no more than 500 entries.

Many thanks.

S.


March 11, 2013 | 11:09 am

For a 1D array, the zl objects are probably easier to manage:

– Pasted Max Patch, click to expand. –

March 11, 2013 | 11:34 am

Thanks Jeremy for the suggestion. May I ask though, how easy/difficult is going to be to manipulate these entries in zl as they are text messages such as: Entry 1 – "This is incoming message 1", Entry 2 – "This is incoming message 2", etc. I haven’t seen this kind of processing with zl objcts that’s why I am confused.


March 12, 2013 | 11:13 am

you may want to store your lines of text in a text object or a coll and then use zl list manipulation on lists of integers to alter the way you access the text (ie use integers as indices to lines of text)…


March 12, 2013 | 11:55 am

Agreed with Terry McDermott. Coll + zl manipulation of the lookup index is most likely the best way to go.

Best, Jeremy


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