when i try to save array content with the -k flag without a size argument its always truncated to 100 when i reopen the patch.
something like this [array define -k $0-array].
this works: [array define -k $0-array 256]
is it not possible to save the content of an array with variable size >100 into a patch?
-
saving array content with -k flag
-
@Jona It is 100 by default, so you will have to send it a [resize( message first....... or are you saying that doesn't work....?
David. -
@Jona Having slept on this, I think it must be better to just create the garray as we would have done before [array define] was introduced........ with a "put" "array".......
You can still use all the other objects in the [array] suite....... [array get].....[array size] etc. and not use [array define].
That should solve the problem in a better way.......?
The problem with [array define] is that it fixes the parameters of the array as arguments....... and so cannot be dynamically modified by data once the patch is loaded.
I cannot see that it is useful, except that it presents a prettier graphic display as a "pop-up"....... and you can still hide the old ugly garray in a sub-patch using the old method.
David. -
@whale-av thanks, thats a much cleaner solution. it works nicely.
the array is inside the graph subpatch, and i have to toggle "save content" in the graph properties.
it works like that:
-
@qweiczz you need to name the array inside the graph subpatch in the example $0-arrayPitch, because the $1 in the message becomes $0. perhaps its because of that?