Trouble reading and writing itable at the same time.

evanlivingston's icon

I'm trying to read a value (y) from itable at position (X), perform a calculation on the y value then write the new value and then move to the next position (x). Max is getting confused and often thinks my y value is associated with the x value before or after then x value it is actually associated with.

Max Patch
Copy patch and select New From Clipboard in Max.

This may be just be a large lack of any ordering with triggers.

Any help is appreciated.

mudang's icon

This sounds like a problem with [buddy].
I wouldn't use it in this context, because depending on what inlet
gets the very first input, you'll get different pairings.

An alternativ would be to give the itable a name (inspector/table name).
Then you can use multiple [table "tablename"] objects, that share the
same data but have decoupled read/write.

This will make the patch more cleaner and easier to debug.