Variable external to max

Jun 26, 2011 at 4:13pm

Variable external to max

Hi all,
I have 10 sounds and I want my patch to load file1.wav the first time it starts, file2.wav the second time I open the same patch, and so on…

What’s the quickiest way to do this?
I was wondering about writing a txt file from [shell] but how?
And moreover… Is there. A simpler way?
Thanks a lot!

#57773
Jun 26, 2011 at 5:23pm

you can write a text file using [preset], [coll], or [text], thats much better.

and define a custom path inside the search path, like /patches/thisapp/thisappsprefs.txt

the folder /thisapp must be present prior to writing the file.

#207286
Jun 28, 2011 at 10:33pm

Roman, i just got the time to get into that: very straightforward!
Thanks a lot!
PS i used text btw, didn’t know of an object for direct editing of txt files…

#207287

You must be logged in to reply to this topic.