I am in the beginning stages of my first plugin. To start, I am trying to get the PPQ position and display this in my plugin. It works, but it completely locks up the DAW until the plugin is closed. I think this is due to too many repaints being called, but not sure. I’m hoping someone can look at the source (there’s not much) and tell me what the problem is. Thanks.
Edit: To give a better idea of flow.
- PluginProcessor.cpp: 130 (processBlock) – Playhead info retrieved.
- PluginEditor.cpp: 33 (paint) – Playhead.PPQposition sent to PPQComponent
- PPQComponent.cpp: 50 (setPPQ) – PPQposition info set to member variable. Repaint() called.
- PPQComponent.cpp: 30 (paint) – Painting logic