Forums > MaxMSP

Pattrstorage setstoredvalue

Jul 27 2012 | 10:55 am

Hello All,

I’m altering saved object data using the setstoredvalue function with Pattrstorage.

Here’s the message I’m sending "setstoredvalue pitch 1 12.79806" – where ‘pitch’ is the object name, ‘1’ is the slot number, and ‘12.79806’ is the value.

So I have 4 slots in Pattrstorage, and I’m using uzi to cycle through the messages and push the same value to all four slots. I’ve printed this to the Max window and everything looks good.

The problem is that Pattrstorage doesn’t seem to be updating when I send the messages. If I save a preset, then all four of the ‘pitch’ values should be the same, but they’re not. When I switch to a different preset in the patch, the pitch value isn’t the same. I noticed that in Pattrstorage help, using the setstoredvalue function doesn’t update the storage immediately, but when you recall the slot it does.

This ‘pitch’ object is in a bpatcher is that’s any help.

I can knock up an example patch if need be, but hoping it’s a simple oversight somewhere!

Aug 30 2012 | 1:57 pm

The fix for this was using the full path (as pattrstorage sees it) when sending the message to pattrstorage.

The message now looks like " setstoredvalue nameofbpatch::pitch 1 12.79806"

You’ve got to use the old "::" majig.

Oct 08 2012 | 6:15 pm

Was just looking for the same sort of thing and found the "setall" message for pattrstorage which sets a value in all slots for a particular object in one go.

e.g. anything -> [setall container_name::object_name $1] -> [pattrstorage] sets all slots to whatever value you send.

jonny B

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

Forums > MaxMSP