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

gpvillamil's icon

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.

gpvillamil's icon

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.

jvkr's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

_
johan

gpvillamil's icon

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