reading text files

wetxmyxpants's icon

Greetings;

i'm a student and this semester for an academic project, i must use
max msp in order to read 2 separate text files with letters... i've
made a patch that reads lines sequencially, yet the list is a sequence
of genomes (C,G,T,A letters) and the format is in a few letters per
line. i could make it work, yet i would spend weeks formatting the text
in order to have a letter per line.
my question is if there is a method to read letter by letter from an
external text file, and read a letter every 3 seconds.. this i know it
can be controled with a metro, yet i don't work well with lists or
external files.

i hope someone can help me out sorting this problem out.

Many thanks,

Bruno Gustavo Costa

Check Out the new free AIM(R) Mail -- 2 GB of storage and
industry-leading spam and email virus protection.

Trum's icon

Hey, havent tried this myself, but you will probably find something that would good for the job in the L-objects (you should be able to find these on maxobjects.com.
Hope they help
T

mattyo's icon

Try this. It needs Peter Elsea's Lobjects, and probably needs some
cleaning up, but you'll get the idea.

M

Max Patch
Copy patch and select New From Clipboard in Max.


wetxmyxpants's icon

This patch you made works perfectly, yet the first line is repeated
twice... i've tried to add a minimum cont value of 1 to the counter
object, changed the start to 1 yet, it keeps repeating the first line.
is there a way to bypass this repetition?

wetxmyxpants's icon

The patch works.
Obrigado professor.