pattrstorage json is not saved automatically

Bernd L's icon

i'm having little trouble to create an external pattrstorage json file automatically..
Although savemode 1 is enabled, i won't be prompted to save a pattrstorage file, when closing the patch. It does save the values, but i can't figure out where and why they are automatically saved.

I usually use the read message to create and save a pattrsorage file manually, but why doesn't it work automatically?

thanks in advance
b

pattrstorage_write_test.maxpat
Max Patch
Chadwick Wood's icon

I think that it won't prompt you to save to a .json file until you have at least one preset stored! That seems to be what I've encountered. I tried adding a preset object that is bound to your pattrstorage, saved 2 presets, and when I try to close the file, it then prompts me to save to a json file. Try this:

Max Patch
Copy patch and select New From Clipboard in Max.

Bernd L's icon

Yes, it worked out. I just put in a preset object, saved some preset and then, voila, i was prompted to save a file, when closing the patch.
Big Thanks.
B.

Bernd L's icon

...and of course, i bound the preset object to a pattrstorage object before saving some presets...

thank you.