Trouble with [route] in Finding Matrix Values

Jan 4, 2013 at 4:59pm

Trouble with [route] in Finding Matrix Values

So I would like to be able to analyze a one dimensional, two plane matrix by sending an uzi to the matrix and receiving the values of all its cells. Seems quite straightforward using uzi->getcell message->matrix, then using route to analyze the output, however I found using route attached to the right outlet of jit.matrix isn’t providing the results I expected. [route] routes the ‘cell’ message just fine, but isn’t giving me anything for the ‘int’ and ‘val’ output which comes afterwards. Below is a test patch to demonstrate the problem I’ve run into. Thanks for any help :-)

– Pasted Max Patch, click to expand. –
#65920
Jan 4, 2013 at 6:15pm

Hi,

That’s normal behavior according to [route]‘s help patch : “The route object takes a message and tries to match its first argument…” ; maybe it’s time to study it again ;-) You should consider to use jitter objects instead of getcell/setcell messages.

– Pasted Max Patch, click to expand. –
– Pasted Max Patch, click to expand. –
#237413
Jan 5, 2013 at 6:22am

ah, had misunderstood the functionality of route. the simple unpack example you gave does the trick. wasn’t aware of unpack’s compatibility with strings. thx!

#237414

You must be logged in to reply to this topic.