I am currently developing a custom module that calls an external library in the Inner C process function. It is currently working but the interaction with the AudioWeaver GUI shows few issues.
I added some variables in my MATLAB file that can control some internal variables in the C process function through the control interface (Knobs, sliders, etc.). The variables are set using the awe_modModuleSet C function that uses mask conditions to check which variables should be updated.
However, I would like to be sure that the controls updates each time the module starts (i.e the knobs and sliders should update to the current value of the variable) because variables initialization must be done in the process function. Is there a way to do that?
I’ve tried to add M.guiInfo.isPolling = 1; in the Matlab file but it did not help.
I’ve also tried to use the get function however it ended up giving a weird outcome and value to the variable concerned.
Thanks for your answer,
Best,
Quentin
2:12am
Hello Quentin,
You have to implement the set function in the Matlab file, in addition to the C file. Please refer to our Module Developer's Guide. There are many examples of the Matlab set function starting with Section '3.2.3 Internal Module Functions' on page 46.
Thanks,
Kevin
4:00am
Hey Kevin,
Thanks for your reply. I actually already implemented the set function in addition to the process C file. And the variables are updating well when I control them from the GUI of the module. My problem is that the position of knobs, sliders (or other controls like dropList or checkBox as well) are not updated at initialization and keep their previous positions even though the variables might have changed value when the module starts. It is more a problem of synchronization of the GUI controls when the module starts.
Thanks for your answer :)