Importing and reading csv/txt data using coll
I am working on a small composition project using pixel data extracted from photographs. I am performing the image processing in Matlab and have exported the this data to csv/txt files.
I am new to Max MSP and have been researching the best way of importing this data into a patch. I have found several examples of how to do this but I think this is the most appropriate way for now: https://cycling74.com/forums/importing-from-excel-csv-questions.
I need the patch to scan sequentially through each row form left to right, starting at (0,0). I am planning on using a metro object to give a constant time interval. At the moment I have adapted the patch given in the link above to recall the txt data using the 'next' message and it prints each row in the max window. Can anyone please give me any pointers on how to separate these rows and how to create predefined time intervalsto control the next message.
Thanks
Joanne
I have sorted the problem with identifying each individual int in the matrix by reproducing the csv file as a list. Still working on how to sequentially trigger each value to be recalled automatically from the coll.
Hi Joanne, I realize this is 5 years later... but I was wondering if you have any idea how I could automate the "reading" part of the patch based on the title of the .csv files? I have lots of different data files that need to get read in to different paths and it isn't ideal to have to manually select them everytime I open the file.
Thank you so much for sharing your patch. It has been very helpful!!
Cheers,
Jake