Well, both [array] and [text] have the “-k” flag, for “keeping” text, which writes down the data stored in them inside the pd patch. This is in their help files. It is the same as the “save contents” Roman mentioned.
On Oct 1, 2017, at 2:25 PM, richard millig @ selma richard.millig@selma.hfmdk-frankfurt.de wrote:
sometimes the values stay in the array, sometimes not
The “sometimes” here will depend on the -k flag. If you are still loosing info with the -k flag, then i guess it depends on how you quit the patch: if you didn’t hit save the data probably didn't get saved. If you did hit save, then perhaps this might be a bug.
(With the -k flag you can even cut and paste [text define] and [array define], so you can move the objects freely without loosing any data.)
Also, as Christof pointed out, writing/reading to text file works on both [array] and [text] objects, as well as “data structures”, which would be yet another way to handle preset info (and much more). There is a tutorial if you go to the pd-browser (help>browser) and look for pure data/data structures
Cheers!!
fd