Forums > MaxMSP

Making two text fields persistent

October 21, 2009 | 3:59 am

I have a patch with two user-editable text fields. I want them to be saved when the patch is closed, and loaded when the patch is opened.

I’ve come up with the following, but it seems rather complex. I can’t help thinking that there is a far simpler way to do it.

I can’t use pattrstorage, because I’m already using that to save other things in the patch, and trying to set up two pattrstorage objects in the same patch seems way to hard.

So here’s what I have – is there a better way?

– Pasted Max Patch, click to expand. –


pgk
October 21, 2009 | 4:07 am

Hi there!

A way to do it without pattrstorage could be to use preset
like this:

– Pasted Max Patch, click to expand. –

Hope this helps!


October 21, 2009 | 4:12 am

I’d considered preset, but the patch has to run under the runtime, so the data has to be saved in an external file.


Viewing 3 posts - 1 through 3 (of 3 total)