UPDATED version without dependence on external .txt files (below in comments)
This is cool. I figured out how to do Automated state-saving in MobMuPlat.
In order to better emulate (virtually via OSC) how my arduino/pi project will actually behave, i.e. the location of hardware knobs can't be set on loadbang, I needed a mechanism for mmp to constantly retain its state. So like hardware knobs they kept their "place".
)aside: the fromGUI toNetwork is Not part of the idea.)
See the zip to demo it.
It only requires that you FIRST make a .txt "state" (ex. mmp-state.txt) file listing all the control addresses you want to save/load and a dummy value for each address.
Works like a charm.
May it serve you well.
Note: the 10s automated save period is completely arbitrary and you could even set it with a knob, slider, textdialog etc.
Peace through sharing,
S
p.s. a todo would be make it automatically harvest the control names/addresses by loading itself (the .mmp) file into a [text] object and just searching for the control classes and write that file as the mmp-state.txt ...perhaps another day