Trouble reading and writing itable at the same time.

Mar 29, 2010 at 6:18pm

Trouble reading and writing itable at the same time.

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.

– Pasted Max Patch, click to expand. –

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

Any help is appreciated.

#49376
Apr 1, 2010 at 12:40am

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.

#177403

You must be logged in to reply to this topic.