I’m having trouble getting my Juce VST3 host to work with PercX, and presumably any plugin which syncs with a host. On the other hand VST3 Plugins like Korg Wavestation that require bpm work with my Juce Host as long as I tweak the juceVST3wrapper (juce_VST3PluginFormat.cpp) to copy over the playhead info into a custom playhead object, and use that in getNextProcessBlock. Any idea what could be missing?
You need to create a playhead, make sure it’s updated correctly each block with the PPQ position, etc, and then call plugin->setPlayHead before every block with an updated pointer to that playhead object.
Thanks. setPlayHead(…) does not set the position of the playhead. It only sets the pointer to the object that the plugin should query for position information. So setting it once rather than every block should still work?
I think setting the pointer once would still work, as long as you update the position in the playhead between calls to processBlock().
(You have to keep the PPQ and other fields updated every block - JUCE won’t do it for you).
