Forums > MaxMSP

Getting rid of some unwanted characters and how to get values in an array (buffer?)?

Jan 27 2009 | 10:26 pm

dear reader

I am reading a text file into max with numbers in it. The first value I would like to use is the first string in every newline. It is a 12 digit string which represents time.

1, Now I am trying to get rid of the first 6 character, with no success so far, tried zl and sprintf.

2, I am trying to have these values in an array or something which would be connected to a metro. When the metro’s value reaches a value in the array or buffer, it sends a bang or perhaps a specific number (line number)…

Any help appreciated,
al the best

ps.: I attached the project file and the text file.

Jan 27 2009 | 11:10 pm

First, investigate regexp; this may provide you with some answers to string parsing. Have a look at this forum topic:

For putting the text into arrays there’s also an "ascii-to-data" object, I think.

Jan 28 2009 | 11:55 pm

very helpful!

thank you.

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

Forums > MaxMSP