There was some details in this topic on why Widget should be completely stateless. With the forthcoming v2.0 rack will be able to run in headless mode therefore the widget will not be processing at all.
If you need to run code every n
sample to save up performances in your process()
, you can use the dsp::clockDivider
class as a helper