Float array to Memin could restart , and selector....
Posted: Mon Aug 22, 2022 8:37 pm
Just find this trying to get some parameter from memin.
If you have a float array transformed in a mem, modifying the float array would restart or recompile all code.
Even code that are not attached to the code with memin will restart. Reinitializing variable and doing a stage(0)!
It could be bad !
In a other way, it could maybe be useful if some need to make some calculation at stage0.
But that must be when there's no sound. (Maybe when the sample rate change ?)
Changing the mem in a other way, writing on it on dsp doesn't do that.
It's only when changing the array in green float.
I was surprise to see that even code that are not connected to the one with memin would also restart.
So i get the idea to check for selector that bypass a code and it's a little different.
With those, all code that have a stage0 will do it. But variable that are not modified in the stage 0 keep the same.
That's maybe an indication that the selector will not recompile all the code of the plugin ?? ?
But that the float modify to memin do it ?
If you have a float array transformed in a mem, modifying the float array would restart or recompile all code.
Even code that are not attached to the code with memin will restart. Reinitializing variable and doing a stage(0)!
It could be bad !
In a other way, it could maybe be useful if some need to make some calculation at stage0.
But that must be when there's no sound. (Maybe when the sample rate change ?)
Changing the mem in a other way, writing on it on dsp doesn't do that.
It's only when changing the array in green float.
I was surprise to see that even code that are not connected to the one with memin would also restart.
So i get the idea to check for selector that bypass a code and it's a little different.
With those, all code that have a stage0 will do it. But variable that are not modified in the stage 0 keep the same.
That's maybe an indication that the selector will not recompile all the code of the plugin ?? ?
But that the float modify to memin do it ?