Pattrstorage autosave still prompts to save
This week after the upgrade to 5.1.6 pattrstorage began prompting me to save instead of autosaving
The savemodes seem to be working because savemode 0 does not prompt
savemode 2 prompts when I save the patch
and savemode 3 prompts when I close the patch
This is happening in both Max and Max for Live.
I haven’t seen any mention of this on the forums recently, so I think it could be specific to my computer .
How does pattrstorage accomplish an autosave (i can’t find .json files for any of the patches and sets which already have autosaved pattrstorage data)? What circumstances will cause pattrstorage to fail at autosaving and thus prompt the user to save a .json file?
The patch below is a simple example which produces the save prompt for me if I store some presets, save and close.
Thanks Cycling ’74 for making such an astounding creative tool! Happy birthday max for live!
----------begin_max5_patcher---------- 568.3ocyVtsaiBCD.8Y3qvxZeLaksAxk9T62QUUjAbScEXGYbZxtU8ee8MnI aRnIMn17.FwLl4xgYF7awQvb4FVCDbK3APTzawQQNQVAQgmif0zMEUzF21fE x5ZlPCG40oYazN4JVAsppU7SRgtg+WlUElbCJHVrplKpXZmovAgKo5hm4hEy MlP6CELJy7N.7X2sjo1UB5FD3wv6vKcNUl+xuS21mBZsymv6UbZWzXbqbkt0 uHqv2iisKiNwr1Xgblp0duRUcNZWMWXdml3RXBFYukg5KuwjyMwIAodQ5+rj 48Jja+dBf4TwBH3wuBdXqMgzgvy9EJlzVq.5gkX3oNVkNtWhgNWhkbLhYwk6 pyOJViVpB5wjwcJZnuxJma7uIlmaycd9JsumKpCm1bSYBHMSMmIn4UrtJU+2 hKqf8RaG8Uhg1w9KKmcEUUNnLXlK4mcBclStdPPMqogtfsWSnqVE7K74.Gxm BGLwSmTeK4goS14RG7QaBGbjXjulKJkqGHtPR8MN95kY393RxOLW5YFtYz1g GiGXFvtCvc1Ic0xRFHYf54B+GjP7UWS58b.3gjeegY2bAWayd2f6QAMA.scN gb4fYYJxMIoKYNx+.ZUVTwMm6ZmCIYgRvHi.isVZ+eX3rNrhK9+i443sU9t0 DMxUphVRDFnC9.3kluzbAUykhs1Cdm87LurjI1J3g07xkRyvrPHbj5ySMhlb BQT12ZDkc0wnjqtHxd5K.9yBIxEDSlGdO9e.2BI+uA -----------end_max5_patcher-----------
This patch works as expected. When you have savemode 3, you are telling the pattrstorage to autosave when the patcher is freed. If the pattrstorage object has never saved out a .json file before, there is no way to autosave, as it doesn’t know what file to use. So, it prompts you to save.
What is meant by ‘autosave’ is if you have previously written out a preset file, it will autosave the current storage slots of the pattrstorage, as long as Max can still find that file.
One neat thing about pattrstorage is if you choose ‘parameter_enable’ in it’s inspector, it will automatically save the storage slots with the patcher.
Let me know if I’m misunderstanding your problem.
My concern is saving the pattr data of a M4L device with the live set. I would like my devices to simply recall the presets I have made for that set without ever initially saving a preset file. Is the attached max audio device set up correctly for this?
Originally, i had my pattrstorage set to parametermode enable, autorestore 1, savemode 1. and It was successfully recalling whatever whenever I opened a set, but at the moment, devices which haven’t been edited are now prompting me to save when they didn’t before.
If I enable parameter mode in a maxpatch (not a live device), will i be able to open the patch with pattrstorage data recalled automatically?
In the patch I pasted in my earlier post, I have enabled parametermode, and autorestore
made some presets,
saved the patch
close the patch
Went ahead and saved a .xml with the same name as the patch.
reopen the patch
the pattr object is recalling the previous state of its bound numberbox, but pattrstorage is empty
thanks for your help, I’m really confused here
In this device, the parameter_enable was not set to 1.
Regardless, to do what you want to do, set the parameter mode enable to 1, the initial enable to 1, and the Auto-update Parameter Initial Enable to 1.
You will also want to set the savemode to 0 and the autorestore to 0, as it doesn’t sound like you want a preset file at all, and rather want the pattrstorage’s parameter to save the slots.
A lot of hoops, but very useful!
Thanks Ben! ‘*v’* That does the trick.