Reading number lists from txt files
Hi all
I've been trying to make a patch that will generate music from the data output by a series of experiments done by a physicist friend of mine, but I've hit something of a bump in the road. I've got 2 lists of data as .txt files that I'm reading with the 'text' object in Max, and I can get it to output the numbers by reading the document line by line with a counter+metro, but that numerical data does not seem to want to play nicely with any other objects. The output from the 'text' will display in a number box, but even if I connect that directly to a second number box, that second box shows no data. Any ideas?
Thanks for your help there - although I think in not including my original .txt files of data I probably wasn't clear on quite what I wanted. I've sorted the problem now - and attached an image to show this. The problem was the text opject outputting 'set' commands aimed at affecting the contents of messageboxes, so I triggered a bang after a delay to send the messagebox contents to a number box and voilà! Problem solved.
The sounds that resulted from this experiment are here in case anyone wants to take a listen: http://adamjohnwilliams.tumblr.com/post/3344923635/this-is-what-xray-crystallography-sounds-like