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

Jan 6, 2010 at 5:49am

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

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

#47593
Jan 6, 2010 at 3:52pm

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.

#171165
Jan 6, 2010 at 4:04pm

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

– Pasted Max Patch, click to expand. –

_
johan

#171166
Jan 6, 2010 at 4:27pm

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

#171167

You must be logged in to reply to this topic.