Logic Pro X MIDI-FX -> Plug-In Latency Compensation = timeshift

hi guys!
In Logic there is an option for latency compensation. So every Track is shifted in time according to the sum of latency and all tracks are then happy and in sync.
But for some reason my plugin or the AudioPlayHead are not together with the main sync so everything is time-shifted. back or forwards.
Let’s say I’m firing an constant MIDI event every beat (4th).
Any idea on how to deal with this problem?
cheers!

I’ve done a little more investigation and it turns out that the scripter plugin in Logic has the same problem. In general it’s a Logic problem…
If someone can test it if it is reproducable:
open Logic and set in Preferences -> Audio -> General-> Plugin-Latency to All.
create new session.
create audioinstrument track
load exs24 -> Factory-> Drum & Percussion -> Percussion -> Coffee Shop Percussion
Load the Scripter plugin and open the Drum Probability Sequencer Script.
Now if you press Play you’ll experiance that the Latency compensation shifts all notes too early…
Really weird…

1 Like

I’m having the same issue with a MIDI-FX. While in all the rest of the tested DAWs (Ableton, Cubase, Reaper) the MIDI-FX is completely synced, in Logic Pro it plays ahead of time and I cannot find a way to sync it. I have realised that when you hit play, with the playhead on 1 1 1 0 (start of time) the getSampleTime method returns negative samples, which is exactly the number of samples that compensation of latency is. If I add this as an offset to the midi messages it’s still slightly off.

For completeness the initial difference in sync is 89ms and after I take into account the initial offset (latency compensation) it drops down to 30ms, which is still noticeable, yet quite a lot better.