Most of the modules I’ve written so far use a timer within process() to periodically do stuff like reading from controls and updating LEDs. But I wonder if using the step() method in ModuleWidget would be a better place for this?
I’m used to making embedded applications with at least an audio and a GUI thread. So it feels funny to interrupt the audio thread to do stuff that only need to happen at 60fps or something. But most examples I’ve seen just have the single process() callback doing everything.
Does anyone have arguments one way or the other? I’m starting on a new series of modules and would like to improve my plugin coding style if possible.