Hello!
i am making a simple plugin that uses simple physics and generates midi from on screen ball collision inside 4 walls. i update the ball position in the audioProcessor and then paint it in the Editor. The ball speed is calculated using effectiveFrameRate, bpm and wanted tempo(the tempo of the ball hitting the walls):
I get it from the processBlock:
juce::AudioPlayHead::CurrentPositionInfo newPositionInfo;
if (playhead->getCurrentPosition(newPositionInfo))
{
bpm = newPositionInfo.bpm;
effectiveFrameRate = newPositionInfo.frameRate.getEffectiveRate();
}
When testing the plugin and ball movement in the projucer plugin host, everything works fine and the speed matches the bpm and chosen tempo. BUT, when testing it in FL Studio, the speed is not fitting the bpm and generally way faster even though the velocity given to each ball position update is the same value… (for example i do x = x + xVelocity)
Is there any thing i miss?
thx

