Is there a better way to parse the value out of get cell?

Nov 6, 2011 at 12:41pm

Is there a better way to parse the value out of get cell?

I’ve been reading the jitter tutorials and doc for about 3 hours, so I’m sure I’ll come across this at some point, but one can’t just read tutorials for days straight…I wanted to try a few things out. So I’m hacking a bit and would love a tip from you all.

When I retrieve a cell from my jit.matrix with getcell, is return the list (for example) “cell 4 5 val 42″ and the bit I need is the value which I’m parsing out with “unpack s i i s i” and just taking the last outlet.

Here’s a snippet:

– Pasted Max Patch, click to expand. –

Is there a more appropriate way to parse that value? It works just fine, but I don’t know what I don’t know.

Y’know? :)

Thanks!

#59843
Nov 6, 2011 at 12:48pm

Hi,

you could use [zl ecils 1] too

#215388

You must be logged in to reply to this topic.