MIDI timing issues in DP & maybe osx in general

For seeking technical help with Digital Performer and/or plug-ins on MacOS.

Moderator: James Steele

Forum rules
This forum is for seeking solutions to technical problems involving Digital Performer and/or plug-ins on MacOS, as well as feature requests, criticisms, comparison to other DAWs.
User avatar
HCMarkus
Posts: 9838
Joined: Tue Jan 10, 2006 9:01 am
Primary DAW OS: MacOS
Location: Rancho Bohemia, California
Contact:

Re: MIDI timing issues in DP & maybe osx in general

Post by HCMarkus »

You can also just "Clear" and "Restore" plugins on master fader.
User avatar
James Steele
Site Administrator
Posts: 21616
Joined: Fri Oct 15, 2004 10:01 pm
Primary DAW OS: MacOS
Location: San Diego, CA - U.S.A.
Contact:

Re: MIDI timing issues in DP & maybe osx in general

Post by James Steele »

I just got word from someone offline that I might have had this wrong. I need to investigate further.
JamesSteeleProject.com | Facebook | Instagram | Twitter

Mac Studio M1 Max, 64GB/2TB, MacOS 14.5, DP 11.32, MOTU 828es, MOTU 24Ai, MOTU MIDI Express XT, UAD-2 TB3 Satellite OCTO, Console 1 Mk2, Avid S3, NI Komplete Kontrol S88 Mk2, Red Type B, Millennia HV-3C, Warm Audio WA-2A, AudioScape 76F, Dean guitars, Marshall amps, etc., etc.!
User avatar
MIDI Life Crisis
Posts: 26256
Joined: Wed May 18, 2005 10:01 pm
Primary DAW OS: MacOS
Contact:

Re: MIDI timing issues in DP & maybe osx in general

Post by MIDI Life Crisis »

James Steele wrote:I just got word from someone offline that I might have had this wrong. I need to investigate further.
! :shock:
2013 Mac Pro 32GB RAM

OSX 10.14.6; DP 10; Track 16; Finale 26, iPad Pro, et al

MIDI LIFE CRISIS
User avatar
stubbsonic
Posts: 4779
Joined: Fri Dec 22, 2006 12:56 pm
Primary DAW OS: MacOS
Contact:

Re: MIDI timing issues in DP & maybe osx in general

Post by stubbsonic »

Forgive me if I'm missing something, but if MOTU touts incredibly accurate (sub-millisecond) MIDI with their interfaces, and allows you to calibrate the timings to a fine degree, then 3 ms is substantial- because all errors in timing are cumulative.

If we add up various sources of latency and slop (including the meat-bag behind the keyboard), we'd want it to be a small and consistent number. Furthermore, if there is a correct way to set up buffers, compensation, offsets, etc., then DP should handle all that stuff appropriately.

Ideally, I'd like to calibrate all that stuff correctly and only have to do it once per interface.
M1 MBP; OS 12, FF800, DP 11.3, Kontakt 7, Reaktor 6, PC3K7, K2661S, iPad6, Godin XTSA, Two Ibanez 5 string basses (1 fretted, 1 fretless), FM3, SY-1000, etc.

http://www.jonstubbsmusic.com
mwilloam
Posts: 110
Joined: Mon Oct 18, 2004 10:01 pm
Primary DAW OS: MacOS
Location: LA

Re: MIDI timing issues in DP & maybe osx in general

Post by mwilloam »

Just want to jump back in and reiterate that the 3ms offset that's getting the most discussion is only one of many outcomes. Often I'm tracking at 128 or even 2048(without patch thru) and in those cases the offset can be greater than 20ms in one direction. While 3ms IS an issue for the higher tempo/rhythmic music I make, I imagine 20ms is a problem for most.

All this said, MOTU has already acknowledged this is a bug as of 9.1 and supposedly working on it. I just wanted to corroborate with others to rule out system specific issues i may have and to get some community QA.
User avatar
HCMarkus
Posts: 9838
Joined: Tue Jan 10, 2006 9:01 am
Primary DAW OS: MacOS
Location: Rancho Bohemia, California
Contact:

Re: MIDI timing issues in DP & maybe osx in general

Post by HCMarkus »

It is important to note that it took about 18-19 ms from key strike to key bottom with weighted key while generating velocity of 127 (meaning shortest time from strike to bottom). This puts things in perspective.

Key Depress (Bottom) - Buffer 128
MIDI Event ahead of Audio by about 1.5 ms.

Key Strike (First finger contact with key)- Buffer 128

MIDI Event behind Audio by about 17 ms.

I should also point out that external MIDI Output varies inversely to the above. If you record MIDI at one buffer, you get an inverse (offsetting) timing when outputting MIDI using the same buffer. This is not an issue for Virtual Instruments... Internal VI response (and audio playback) is essentially perfect, within about a sample if DP is properly calibrated, regardless of buffer size.

MOTU has responded to my tech link, and is investigating.
mwilloam
Posts: 110
Joined: Mon Oct 18, 2004 10:01 pm
Primary DAW OS: MacOS
Location: LA

Re: MIDI timing issues in DP & maybe osx in general

Post by mwilloam »

HCMarkus wrote:It is important to note that it took about 18-19 ms from key strike to key bottom with weighted key while generating velocity of 127 (meaning shortest time from strike to bottom). This puts things in perspective.

Key Depress (Bottom) - Buffer 128
MIDI Event ahead of Audio by about 1.5 ms.

Key Strike (First finger contact with key)- Buffer 128

MIDI Event behind Audio by about 17 ms.

I should also point out that external MIDI Output varies inversely to the above. If you record MIDI at one buffer, you get an inverse (offsetting) timing when outputting MIDI using the same buffer. This is not an issue for Virtual Instruments... Internal VI response (and audio playback) is essentially perfect, within about a sample if DP is properly calibrated, regardless of buffer size.

MOTU has responded to my tech link, and is investigating.
This is good detail as well thanks. Again, my original test which was simplest, was Roland td-30 recording MIDI(usb) and audio out direct to 1248(analog 1-2) with offset up to ~25ms early to late so ~50ms total across range. And while there will always be SOME offset between the MIDI and audio capture, it should be audio buffer independent.
User avatar
towerproductions
Posts: 161
Joined: Wed Jan 26, 2005 10:01 pm
Primary DAW OS: MacOS
Location: Boston, MA

Re: MIDI timing issues in DP & maybe osx in general

Post by towerproductions »

mwilloam wrote:
James Steele wrote:Here’s something I recently learned that may or may not help: any plug ins (like mastering limiters, etc) on a master fader are not latency compensated and this will wreak havoc with timing when trying to record MIDI late in a project or if you like to work with a limiter etc on a master fader. A workaround is to temporarily assign the master fader to another output I believe.
I've heard this as well. Supposedly it's a bug with latency compensation. Another workflow is to use an aux track as a "master" with a virtual bus input and a hardware output and skip masters all together. Benefit also is you can apply mix inserts here and still pipe it to an audio track to realtime record if so desired. To the original tests, I had no master faders, just MIDI and mono audio.
I discovered this as well not long ago when I was trying to add some MIDI tracks to a project after it was in the project and in mixing stage . I ended up adding an aux track and moving my master fader EQs , compressors/limiter to there which kept all the settings the same since bypassing turning them off did not work with latency issues .
DP11.1, Mac Pro 3.33 / 12-core, 96GB RAM, Mac OS 10.14.6
2 MOTU 2408 mk3s Black Lion mod, , UA Apollo Quad, UAD 2 Octo PCIe,
a bunch of EW Play,Opus, Spitfire, Sine,UVI, Kontakt Komplete Ultimate, VE Pro 7, Falcon, DSP Quattro, AmpliTube 5,and way too many others.
User avatar
HCMarkus
Posts: 9838
Joined: Tue Jan 10, 2006 9:01 am
Primary DAW OS: MacOS
Location: Rancho Bohemia, California
Contact:

Re: MIDI timing issues in DP & maybe osx in general

Post by HCMarkus »

towerproductions wrote:
mwilloam wrote:
James Steele wrote:Here’s something I recently learned that may or may not help: any plug ins (like mastering limiters, etc) on a master fader are not latency compensated and this will wreak havoc with timing when trying to record MIDI late in a project or if you like to work with a limiter etc on a master fader. A workaround is to temporarily assign the master fader to another output I believe.
I've heard this as well. Supposedly it's a bug with latency compensation. Another workflow is to use an aux track as a "master" with a virtual bus input and a hardware output and skip masters all together. Benefit also is you can apply mix inserts here and still pipe it to an audio track to realtime record if so desired. To the original tests, I had no master faders, just MIDI and mono audio.
I discovered this as well not long ago when I was trying to add some MIDI tracks to a project after it was in the project and in mixing stage . I ended up adding an aux track and moving my master fader EQs , compressors/limiter to there which kept all the settings the same since bypassing turning them off did not work with latency issues .
I just clear inserts then restore after recording stuff late in the project. Just to be safe, I'll save the mastering chain as a preset with the song name as its title.
Post Reply