Newbie question - how to save Floatnum and Number object values?
Hi,
I'm making a patch with several flonum and number objects. every time I close the patch and re-open it, the number values in each of these objects resets to zero. I'd like for this to not happen and instead have my number values saved for when I come back to them later. How can this be achieved? In the several of the tutorial files (for ex. MSP Tutorial 5), number and flonum objects have their values stored.
thanks!
-g
You could use the loadmess object to load a value into the number box every-time the patch is opened.
Also preset and pattr
Yet another way :
What do you mean by "stored"?
If you just want your number boxes to show up default values when you open the patch, one loadmess for each box can be an easy solution.
If you want them to remember sets of values that have been entered, have a look at preset (easier, less powerful) and pattrstorage (harder, more powerful - it also allows you to choose the order in which the values are restored, which can be very important) - there are two "patcher storage" tutorials to guide you through it.
best
aa
definetly just [preset] for now.
thanks for the suggestions,
I think preset will do the job. I'm still mystified as to why certain tutorial patches save their object values upon me opening them, but Preset will keep me going for now.
=g
the mystery could be [loadbang] - [int 7] - numberbox, but thats not what you want. :)