Forums > MaxMSP

How to output a 2 column array

Jul 19 2013 | 9:05 am

So I have a .txt file that is 57 rows by 2 columns, and I use read to store the file into a text object. The data would look like this:
100 314
456 789
23 78

I want to output each of the numbers in each line to separate integer objects but I can only output the first value of each line and can’t seem to output the 2nd value on each line. How can I output both values on each line simultaneously to different int objects?

Jul 19 2013 | 9:28 am

Like this?

-- Pasted Max Patch, click to expand. --


Jul 19 2013 | 9:34 am

Hmm, I’m not sure what to do with it after new from clipboard and it shows up as text

Jul 19 2013 | 9:35 am

Oh wait, I got it to work, let me see

Jul 19 2013 | 9:47 am

Hmm, it doesn’t work, but I got it to work with a simpler random data set. It seems then that it’s a problem with my data

Jul 19 2013 | 9:49 am

Ok I figured it out, thanks!

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

Forums > MaxMSP