Forums > Jitter

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

November 6, 2011 | 12:41 pm

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!



Ch
November 6, 2011 | 12:48 pm

Hi,

you could use [zl ecils 1] too


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