MIDI timing issues in DP & maybe osx in general
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.
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.
- HCMarkus
- Posts: 10387
- 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
You can also just "Clear" and "Restore" plugins on master fader.
- James Steele
- Site Administrator
- Posts: 22790
- 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
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 Sequoia 15.5 Public Beta 2, DP 11.34, 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.!
Mac Studio M1 Max, 64GB/2TB, macOS Sequoia 15.5 Public Beta 2, DP 11.34, 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.!
- MIDI Life Crisis
- Posts: 26277
- Joined: Wed May 18, 2005 10:01 pm
- Primary DAW OS: MacOS
- Contact:
Re: MIDI timing issues in DP & maybe osx in general
!James Steele wrote:I just got word from someone offline that I might have had this wrong. I need to investigate further.

2013 Mac Pro 2TB/32GB RAM
OSX 10.14.6; Track 16; DP 12; Finale 28
LinkTree (events & peformances)
Instagram
Facebook
MIDI LIFE CRISIS
OSX 10.14.6; Track 16; DP 12; Finale 28
LinkTree (events & peformances)
MIDI LIFE CRISIS
- stubbsonic
- Posts: 5158
- Joined: Fri Dec 22, 2006 12:56 pm
- Primary DAW OS: MacOS
- Contact:
Re: MIDI timing issues in DP & maybe osx in general
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.
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 15.3, FF800, DP 11.33, PC3K7, K2661, iPad6, Godin XTSA (w/ SY-1000), 2 Ibanez 5-string basses (1 fretted, 1 fretless), FX galore
http://www.jonstubbsmusic.com
http://www.jonstubbsmusic.com
Re: MIDI timing issues in DP & maybe osx in general
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.
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.
- HCMarkus
- Posts: 10387
- 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
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.
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.
Re: MIDI timing issues in DP & maybe osx in general
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.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.
- 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
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 .mwilloam wrote: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.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.
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.
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.
- HCMarkus
- Posts: 10387
- 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
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.towerproductions wrote: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 .mwilloam wrote: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.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.