Improve DP's MIDI Timing

Discussion of Digital Performer use, optimization, tips and techniques on MacOS.

Moderator: James Steele

Forum rules
This forum is for most discussion related to the use and optimization of Digital Performer [MacOS] and plug-ins as well as tips and techniques. It is NOT for troubleshooting technical issues, complaints, feature requests, or "Comparative DAW 101."
User avatar
dazzjazz
Posts: 296
Joined: Tue Apr 24, 2007 12:16 am
Primary DAW OS: MacOS
Location: Sydney Australia
Contact:

Improve DP's MIDI Timing

Post by dazzjazz »

Hi,

I've noticed some poor performance in DPs MIDI timing. I know MIDI is not a great standard, being serial etc but I'm hoping to tighten things up in terms of timing. I'm using both the MIDI in/out on my Focusrite Clarett 8pre and a MOTU Fastlane.

Thanks in advance.

Darren

PS Yes I can play to a click!
iMac 27" 2013 24 GB RAM
OSX Catalina. Focusrite Clarett 8Pre. Heritage Audio HA73.
DP10.

Yamaha CP4. 1961 Hammond A100. Too many Leslies.
……………………
Darren Heinrich
BMus (Hons) Jazz Piano
PhD Jazz Organ Improvisation

http://www.dazzjazz.com/
User avatar
Kurt Cowling
Posts: 387
Joined: Mon Oct 18, 2004 10:01 pm
Primary DAW OS: MacOS
Location: Milwaukee, WI

Re: Improve DP's MIDI Timing

Post by Kurt Cowling »

Make sure you don’t have any latency inducing plugins on the Master Fader in VI tracks while recording MIDI.
DP 11.34 , 2021 MacBook Pro M1-Max, 2017 iMac Retina 5K 27-inch, Omnisphere, Trilian, Stylus RMX, EZ Drummer 2, Falcon, Real Guitar, Sample Modeling brass. Audio Modeling reeds, strings, Kontakt 6, Flux Pure Limiter 3, PSP Vintage Warmer, PSP MixPack, PSP StereoPack, PSP Impressor, Altiverb 7, Izotope RX10 Standard, Yamaha S-90ES, Yamaha MOXF-8, Yamaha MX60, Sibelius subscription, Adobe CC and Motion 5.
dewdman42
Posts: 1229
Joined: Thu Jul 21, 2005 10:01 pm
Primary DAW OS: MacOS
Contact:

Re: Improve DP's MIDI Timing

Post by dewdman42 »

dazzjazz wrote:Hi,

I've noticed some poor performance in DPs MIDI timing. I know MIDI is not a great standard, being serial etc but I'm hoping to tighten things up in terms of timing. I'm using both the MIDI in/out on my Focusrite Clarett 8pre and a MOTU Fastlane.
!
Can you be more specific about the problem you're having? Are you saying that when you record your MIDI takes, the notes are not landing on the grid where you think you played them?

Or are you saying that even if something is quantized strictly, that during playback you can hear MIDI slop happening?

Are you talking about external instruments or software instruments?
5,1 MacPro 3.46ghz x 12 cores,96gb, Monterey (OpenCore), Lynx AES16e-50+X32
User avatar
mikehalloran
Posts: 16215
Joined: Sun Jan 25, 2009 5:08 pm
Primary DAW OS: MacOS
Location: Sillie Con Valley

Re: Improve DP's MIDI Timing

Post by mikehalloran »

MIDI over USB 1.1 is sample accurate. Something’s wrong but, without knowing more about your setup, I haven’t a clue.
DP 11.34; 828mkII FW, micro lite, M4, MTP/AV USB Firmware 2.0.1
2023 Mac Studio M2 8TB, 192GB RAM, OS Sequoia 15.4, USB4 8TB externals, Neumann MT48, M-Audio AIR 192|14, Mackie ProFxv3, Zoom F3 & UAC 232 32bit float recorder & interface; 2012 MBPs (x2) Catalina, Mojave
IK-NI-Izotope-PSP-Garritan-Antares, LogicPro X, Finale 27.4, Dorico 5, Notion 6, Overture 5, TwistedWave, DSP-Q 5, SmartScore64 NE Pro, Toast 20 Pro
dewdman42
Posts: 1229
Joined: Thu Jul 21, 2005 10:01 pm
Primary DAW OS: MacOS
Contact:

Re: Improve DP's MIDI Timing

Post by dewdman42 »

to be fair about the accuracy, MIDI over USB will only be sample accurate if the MIDI device supports MIDI timestamping from CoreMidi. Not all do and its hard to find out for sure in most cases.

CoreMidi itself includes MIDI timestamping, but not even all apps are fully aware of it. Its a hit or miss thing.

I think if you use MOTU MIDI interfaces, you're more assured of MIDI timestamping doing what its supposed to to do, with DP being the sequencer involved.

The OP can try to ask the manufactures they are using to see whether the MIDI implementation is compliant completely with MIDI timestamping all the way to the device.
5,1 MacPro 3.46ghz x 12 cores,96gb, Monterey (OpenCore), Lynx AES16e-50+X32
dewdman42
Posts: 1229
Joined: Thu Jul 21, 2005 10:01 pm
Primary DAW OS: MacOS
Contact:

Re: Improve DP's MIDI Timing

Post by dewdman42 »

Actually, even MIDI timestamping is not "sample accurate". What MOTU has said in the past about MIDI timestamping accuracy is that its sub-millisecond accurate.

Your software instruments will render MIDI sample accurately, but MIDI sent to external gear is not sample accurate at all...but can be accurate enough.

There is this one sample accurate MIDI interface, kind of clever and interesting....

https://www.expert-sleepers.co.uk/usamo.html

The biggest problem with most MIDI interfaces is jitter. The discontinued Roland's have rated the best for that, and MOTU a close second place. But ultimately I think using a MOTU interface with DP is the way to go, sub millisecond accuracy through MIDI timestamping. USB on its own does not provide that. The device itself needs to have a clock that can timestamp each MIDI event before making it available for the driver to receive via CoreMidi and hand over to the ap with the timestamp. A lot of devices do not have that.

This old thread from years ago may help with insights about MIDI jitter problems.

http://forum.cakewalk.com/MIDI-quotJitt ... 78006.aspx
5,1 MacPro 3.46ghz x 12 cores,96gb, Monterey (OpenCore), Lynx AES16e-50+X32
User avatar
dazzjazz
Posts: 296
Joined: Tue Apr 24, 2007 12:16 am
Primary DAW OS: MacOS
Location: Sydney Australia
Contact:

Re: Improve DP's MIDI Timing

Post by dazzjazz »

dewdman42 wrote:
Can you be more specific about the problem you're having? Are you saying that when you record your MIDI takes, the notes are not landing on the grid where you think you played them?
Are you talking about external instruments or software instruments?
That’s right, MIDI notes are not landing on the grid where I think I’ve played them. I have to play ahead of the beat in a really unnatural way. This happens with software instruments and external instruments.
iMac 27" 2013 24 GB RAM
OSX Catalina. Focusrite Clarett 8Pre. Heritage Audio HA73.
DP10.

Yamaha CP4. 1961 Hammond A100. Too many Leslies.
……………………
Darren Heinrich
BMus (Hons) Jazz Piano
PhD Jazz Organ Improvisation

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

Re: Improve DP's MIDI Timing

Post by mwilloam »

Besides potentially being an issue with the unintuitive "Sync Recorded MIDI to Patch Thru" setting in MIDI patch thru...

There's been a MIDI recording accuracy bug in DP for 3years since post v9.1. Likely a bug from the pregen enhancement. This has been confirmed by motu. Not sure it was fixed in v10.x. Was not in v9.x. Simply put, the placement of a note-on event would shift relative to your audio interface buffer setting. The lower the more accurate, the higher, the less. This should not happen, it should be compensated for and independent of audio buffers. This was with a 1248. Again, confirmed by motu tech & dev. To me this is a P0 bug in severity. Others have posted about this issue in confusion. There may be a lot DP users scratching their heads thinking the timing is them...it's not.
dewdman42
Posts: 1229
Joined: Thu Jul 21, 2005 10:01 pm
Primary DAW OS: MacOS
Contact:

Re: Improve DP's MIDI Timing

Post by dewdman42 »

as a temporary work around can the recording offset be used to make a manual adjustment?
5,1 MacPro 3.46ghz x 12 cores,96gb, Monterey (OpenCore), Lynx AES16e-50+X32
User avatar
HCMarkus
Posts: 10404
Joined: Tue Jan 10, 2006 9:01 am
Primary DAW OS: MacOS
Location: Rancho Bohemia, California
Contact:

Re: Improve DP's MIDI Timing

Post by HCMarkus »

mwilloam wrote:There's been a MIDI recording accuracy bug in DP for 3years since post v9.1. Likely a bug from the pregen enhancement. This has been confirmed by motu. Not sure it was fixed in v10.x. Was not in v9.x. Simply put, the placement of a note-on event would shift relative to your audio interface buffer setting. The lower the more accurate, the higher, the less. This should not happen, it should be compensated for and independent of audio buffers. This was with a 1248. Again, confirmed by motu tech & dev. To me this is a P0 bug in severity. Others have posted about this issue in confusion. There may be a lot DP users scratching their heads thinking the timing is them...it's not.
I confirmed buffer changes MIDI note placement in v9x. I, too, wonder if this is fixed in v10?
User avatar
dazzjazz
Posts: 296
Joined: Tue Apr 24, 2007 12:16 am
Primary DAW OS: MacOS
Location: Sydney Australia
Contact:

Re: Improve DP's MIDI Timing

Post by dazzjazz »

Wow, interesting info regarding the bug and its confirmation my MOTU.
Really needs to be fixed.
iMac 27" 2013 24 GB RAM
OSX Catalina. Focusrite Clarett 8Pre. Heritage Audio HA73.
DP10.

Yamaha CP4. 1961 Hammond A100. Too many Leslies.
……………………
Darren Heinrich
BMus (Hons) Jazz Piano
PhD Jazz Organ Improvisation

http://www.dazzjazz.com/
User avatar
HCMarkus
Posts: 10404
Joined: Tue Jan 10, 2006 9:01 am
Primary DAW OS: MacOS
Location: Rancho Bohemia, California
Contact:

Re: Improve DP's MIDI Timing

Post by HCMarkus »

dazzjazz wrote:Wow, interesting info regarding the bug and its confirmation my MOTU.
Really needs to be fixed.
That said, perhaps you might try changing the buffer size you use when recording... you may find the sweet spot where things line up really well for you.

And, btw, I am not certain this irregularity still exists in 10. I haven't tested.
David Polich
Posts: 4839
Joined: Tue Dec 07, 2004 10:01 pm
Primary DAW OS: MacOS
Location: Los Angeles, CA
Contact:

Re: Improve DP's MIDI Timing

Post by David Polich »

Interestingly, I am experiencing no MIDI lag
with hardware in DP 10.1. In 9.52, any MIDI
I recorded on external synths would play
back anywhere from 15 to 30 ticks late, so
I would have to shift the MIDI earlier, or shift
the recorded audio earlier by that amount
to get it to line up with my sequence properly.

The issue seems to be gone in 10.1. No MIDI playback
lag with hardware.
2019 Mac Pro 8-core, 128GB RAM, Mac OS Sonoma, MIDI Express 128, Apogee Duet 3, DP 11.32, , Waves, Slate , Izotope, UAD, Amplitube 5, Tonex, Spectrasonics, Native Instruments, Pianoteq, Soniccouture, Arturia, Amplesound, Acustica, Reason Objekt, Plasmonic, Vital, Cherry Audio, Toontrack, BFD, Yamaha Motif XF6, Yamaha Montage M6, Korg Kronos X61, Alesis Ion,Sequential Prophet 6, Sequential OB-6, Hammond XK5, Yamaha Disklavier MK 3 piano.
http://www.davepolich.com
mwilloam
Posts: 110
Joined: Mon Oct 18, 2004 10:01 pm
Primary DAW OS: MacOS
Location: LA

Re: Improve DP's MIDI Timing

Post by mwilloam »

David Polich wrote:Interestingly, I am experiencing no MIDI lag
with hardware in DP 10.1. In 9.52, any MIDI
I recorded on external synths would play
back anywhere from 15 to 30 ticks late, so
I would have to shift the MIDI earlier, or shift
the recorded audio earlier by that amount
to get it to line up with my sequence properly.

The issue seems to be gone in 10.1. No MIDI playback
lag with hardware.
Just to be clear, the issue I spoke of was never playback lag, but rather where the MIDI note event was recorded relative to when it was actually played in time. MIDI penciled in on the grid played perfectly. MIDI recorded, technically played back perfectly...problem was it was playing back inaccurately recorded MIDI.

Easiest way to test is setup a mic, close as possible to a MIDI keyboard key(or splice a MIDI->ts cable if you know how). Create an audio and MIDI track. Start with audio buffer of 64. Hit the key hard and quick for a solid transient. Record the transient from the mic and the MIDI note on. Zoom the tracks and observe any transient/note offset. Retest for audio buffers of 64->2048. No matter the offset it should consistent, independent of the audio buffer. If it changes based on the buffer, that's the bug.
User avatar
HCMarkus
Posts: 10404
Joined: Tue Jan 10, 2006 9:01 am
Primary DAW OS: MacOS
Location: Rancho Bohemia, California
Contact:

Re: Improve DP's MIDI Timing

Post by HCMarkus »

mwilloam wrote:Just to be clear, the issue I spoke of was never playback lag, but rather where the MIDI note event was recorded relative to when it was actually played in time. MIDI penciled in on the grid played perfectly. MIDI recorded, technically played back perfectly...problem was it was playing back inaccurately recorded MIDI.

Easiest way to test is setup a mic, close as possible to a MIDI keyboard key(or splice a MIDI->ts cable if you know how). Create an audio and MIDI track. Start with audio buffer of 64. Hit the key hard and quick for a solid transient. Record the transient from the mic and the MIDI note on. Zoom the tracks and observe any transient/note offset. Retest for audio buffers of 64->2048. No matter the offset it should consistent, independent of the audio buffer. If it changes based on the buffer, that's the bug.
+1
Post Reply