thanks Sven and thanks Richard.

I already thought it was not a good idea to change a variable inside the process as for OOP principles.

but I dint find any solution to do what I want to do, that is a tool for live coding in which the process variables are values for a sequencer sendin OSC messages to another application. I need the process for the timing.

what I had in mind came from the fact that in c++ frameworks to build audio application you can modify variable values inside a thread.

after your answers I think I will have to look for another approach.