Hallo, Olivier Revollat hat gesagt: // Olivier Revollat wrote:
I have tryed rradical because I think that is very what I need in pure data ..... so I read the documentation ....
Evrything seem to work fine : OSC messages (wit OSCx), store preset to a file, (with pool external) ... But I have a problem on retore params .... I have try sevral patch to under stand what's wrong but I DON'T UNSERSTAND WHAT'S HAPPEN .. I explain :
for example, I have try memento_unittest.pd (rradical/memento/exemples) :
I choose a file to store preset : ex : test.dat. then I change the value of /radio (for example) a click (SAVE) and then my test.dat contain : , , "test" , , "test" 0 , "/radio" , 2
I change again the value of /radio and click (PRINT) :
test 0 , /radio , 7
Then I click (RESTORE) and (PRINT)
test 0 , /radio , 2
Evrything seems OK because /radio have recall it's previous value : 2
But the slider (/radio) have not change his value and still show the old value : 7
I try the test on diffrent kind of configuration with diffrent kind of gui or not gui controls , numbers .... it's always the same : RESTORE SEEM TO WORK (PRINT show me the restored value) BUT THE CONTROLS ALWAYS SHOW THE OLD VALUE...
Yes, that's correct and it's intentional. To also set the sliders you need to send a "set" message to every [originator]. This is easy to do if you use the "hidden" receive target: "SET_ALL_RRADICALS", that is mentioned in the help patch for originator.
What is happening here is the following: loading a state from disk or from memory is considered a different operation than actually activating this or another state and because of this they are handled by two different messages to [originator]: "substate NUMBER" loads a substate NUMBER and "set" activates the currently loaded substate. Both can be done in one step as well by using the combined message "setsub NUMBER"
Now what you load through the "careGUI" actually is a collection of many such substates. "careGUI" cannot know which one to activate, so activation is in your responsibility and you should use a "substate NUM", set" or "setsub NUM" message. You can use the outlet of [careGUI] to start this activation: It will receive a "bang" after a new file was loaded.
Frank Barknecht _ ______footils.org_ __goto10.org__