Writing data to one coll from many max4live patches
Hi everyone,
I was wondering if someone can point me in some possible directions for something I am working on. So I have several copies of a Max patch in Ableton, basically one on each track.
They collect some information about this track (midi messages) and I am saving them all. For each event there are several values. Right now they are written in lines in a text component like:
value 1 ; value 2 ; value 3 ; value 4;
value 1 ; value 2 ; value 3 ; value 4;
value 1 ; value 2 ; value 3 ; value 4;
value 1 ; value 2 ; value 3 ; value 4;
etc.
Now I am collecting all the data from all the tracks and save it in one big file. So I use udpsend and dump them all in another text component. So far so good.
But now I need to actually do some operations like sorting for example by "value 3" and have all the other columns rearrange. Like if they were .csv files and you open them in Excel and then sort by a certain column.
So I am looking at using collections, but the question is, wether they are still shared when referencing the same collection, even between several max4live patches or do I still have to have different ones for each and then dump them all into one master collection using udpsend?
Otherwise I guess the only way would be the use of something like SQlite, but I would rather not, as syntax is rather complicated.
Thankful for any hints regarding this.
I think if you use a named coll like [coll data] in several M4L devices or instances they will all refer to the same collection, similar to a global [value x] object.