converting Function information to text files

elevatormusicmaker's icon

I hope to start using parameter files with other software such as Audiosculpt in order to create dynamic break-point functions (gradual changes). This requires a text file in a specific format, like below. Sorry the table spacing sucks, I am uploading the equivalent in text file as well.

Time Function1 Function2 Function3
0.0 1.0 0.0 0.0
0.3 0.7 0.0 0.5
1.0 0.0 0.5 1.0

I am wondering if anyone knows of a straightforward max patch that can collect information from multiple [function] objects and format it to something similar to the table shown above. I feel I am just coming up with roundabout ways of doing this. as you will see in the attachment below. Its a mess. I would end up using lots of complicated strings and zl objects again in order to merge the function information together in the right format, but I'm wondering if someone out there must know a quicker way of doing it

Function2txt.maxpat
Max Patch
Function2txt1.maxpat
Max Patch
ParameterFileExample.txt
txt
elevatormusicmaker's icon

For anyone that's interested, here is the final patch. Its not completely versitile yet, but it does the job (currently, the number of points in the function must be the same for all of them). Suggestions are welcome!

FunctionstoAsculptParaFileG.maxpat
Max Patch