We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0a5f4e6 + 5a49399 commit b0c7dd0Copy full SHA for b0c7dd0
modules/tracktion_engine/plugins/effects/tracktion_FourOscPlugin.cpp
@@ -1487,7 +1487,7 @@ void FourOscPlugin::applyToBuffer (const PluginRenderContext& fc)
1487
{
1488
for (auto m : *fc.bufferForMidiMessages)
1489
1490
- int midiPos = int (m.getTimeStamp());
+ int midiPos = juce::roundToInt (m.getTimeStamp() * getSampleRate());
1491
if (midiPos >= pos && midiPos < pos + thisBlock)
1492
midi.addEvent (m, midiPos - pos);
1493
}
0 commit comments