Commit 404b546
Fix MIDI timestamp handling in FourOscPlugin for sample-accurate timing
The FourOscPlugin had a timing bug where MIDI timestamps (in seconds)
were incorrectly cast to integers and treated as sample positions.
This caused all MIDI events to be shifted toward the beginning of audio blocks,
reducing timing accuracy.
Changes:
- Convert timestamps from seconds to samples using getSampleRate()
- Use roundToInt() for proper rounding instead of truncation
Impact:
- Fixes sample-accurate MIDI timing for synthesizer voice triggering1 parent 21bb52d commit 404b546
File tree
1 file changed
+1
-1
lines changed- modules/tracktion_engine/plugins/effects
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1487 | 1487 | | |
1488 | 1488 | | |
1489 | 1489 | | |
1490 | | - | |
| 1490 | + | |
1491 | 1491 | | |
1492 | 1492 | | |
1493 | 1493 | | |
| |||
0 commit comments