I have a patch that has several copies of a wavetable abstraction. The abstraction has a $0 array with the "Save contents" option checked. Each instance of the abstraction has different data in its array. When I save and reopen the patch, all of the arrays are incorrectly set to the contents of one of them. This seems like a bug to me. I think that each array should have been restored to the contents it had when I saved it. How can I restore all of the arrays to the correct values? Is there a way to use [savestate] with an array?
-
How to save/restore multiple $0 array abstractions in a patch?
-
they need their own name / per array to save the data. you could output the array as a txt file and read it back in when you open it.
-
also this is how to use savestate with $0
https://patchstorage.com/savestate-plus-0-array-save-pd-vanilla/ -
@jamcultur I can reproduce this. Feels like a bug but I think it is the nature of abstractions saving confilicting with the array saving.
As workaround we can do our own array saving with [savestate]

arrayabs.pd
arrayabsopenthis.pd -
if you make " f box $0 " and then check the inside of the f box youll get a number . so $0array is actually called maybe 1002array . and then you sen the data into 1002array.. but you have to check the number because it might be different it doesnt always stay the same number.

-
Thanks @willblackhurst and @lacuna for showing how to use savestate with an array.