Forums > MaxMSP

loadbang -> recall message -> pattrstorage not working, even with deferlow

January 6, 2010 | 5:49 am

I am using pattstorage and autopattr to store the state of a patch. I want to save and recall the state automatically, so I have a closebang that triggers a store messsage, and a loadbang that triggers a recall message.

Now here’s the weird thing:

When the patch opens, it does not recall the state. However, manually triggering the *same* message that the loadbang is supposed to send works fine. (The closebang works too.)

I have tried using loadbang -> message -> deferlow -> pattrstorage, but it does not seem to work.

The patch is here: http://www.villamil.org/soft/video_player_v3.zip


January 6, 2010 | 3:52 pm

Weird. Replacing (deferlow) with (delay 500), in exactly the same place, works fine.

I thought (deferlow) was preferred, but in this case it did not work at all.


January 6, 2010 | 4:04 pm

In this case the dumpout comes in very handy. It reports when reading the file is done.

– Pasted Max Patch, click to expand. –

_
johan


January 6, 2010 | 4:27 pm

Thank you! Very handy technique. So it seems that pattrstorage is read asynchronously…


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