Avid Pro Audio Community

Avid Pro Audio Community

How to Join & Post  •  Community Terms of Use  •  Help Us Help You

Knowledge Base Search  •  Community Search  •  Learn & Support


Avid Home Page

Go Back   Avid Pro Audio Community > Pro Tools Software > Virtual Instruments
Register FAQ Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-22-2021, 03:05 PM
Will Russell's Avatar
Will Russell Will Russell is offline
Member
 
Join Date: Apr 1999
Location: Newfield, NY (Ithaca)
Posts: 1,152
Default Calculating MIDI latency?

Hi all,

I could use some help from you ProTools MIDI experts.
5,1 12 core Mac Pro
Mac OS 10.14 Mojave
Pro Tools Ultimate HDX 2021.12

I did a live tracking session today with a real guitar, vocals (to a click) and someone playing a MIDI keyboard through MOTU Fasttrack USB, to an instrument channel with the Ivory Grand Pianos II plug-in. 24/96 session.

Headphone monitoring was via sends from each input to analog outputs to a Aviom headphone system.

Although I usually drop down the playback buffer as low as I can for MIDI tracking (128@96k) I inadvertently left the playback buffer at 512. The keyboard player did not report any latency however on playback all of the keyboard tracks are ahead of the established tempo. Apparently the player compensated for the latency by playing everything a little bit early.

Sigh.

It seems to me that there must be some way to calculate the MIDI latency but I can't for the life of me find any information leading me to that information. If I could calculate this latency then I could simply slip the MIDI tracks back by that amount and put them in proper time.


Help! I don't do a lot of work with virtual instruments and any advice would be wildly appreciated!
__________________
Will Russell
Electric Wilburland Studio
https://linktr.ee/wilburland
M1MAX Mac Studio OS 14.4.1, PT2024.3, HDX, S1/Dock
M1 PRO MacBook Pro OS 14.4.1, PT2024.3, BabyFacePro FS
Reply With Quote
  #2  
Old 12-22-2021, 03:58 PM
albee1952's Avatar
albee1952 albee1952 is offline
Member
 
Join Date: May 2004
Location: Norwich, CT
Posts: 39,325
Default Re: Calculating MIDI latency?

It won't do any good to calculate latency when the player tried to compensate. I would fine a spot where the guitar(or choose any instrument) and the piano SHOULD be playing tightly together and slide the midi data to align with the chosen "guide" instrument. Alternately, commit the midi data to audio and slide the audio in the same fashion. Since its reasonable to expect any 2 players to be slightly off at any given moment, I suggest you accept what sounds good and not try for "perfection" on a technical(ie, grid-related) level.

Alternately, you could try to use Beat Detective to extract a groove template from another track and force that onto the midi No matter which route you decide on, I would duplicate the playlist(whether midi or audio) first so you always have the original to go back to, just in case
__________________
HP Z4 workstation, Mbox Studio
https://www.facebook.com/search/top/...0sound%20works


The better I drink, the more I mix

BTW, my name is Dave, but most people call me.........................Dave
Reply With Quote
  #3  
Old 12-22-2021, 04:12 PM
JFreak's Avatar
JFreak JFreak is offline
Moderator
 
Join Date: Jan 2003
Location: Tampere, Finland
Posts: 24,901
Default Re: Calculating MIDI latency?

MIDI is said to be sample accurate, but in reality MIDI 1.0 spec from 1981 says that MIDI clock is 31.25kbit/s and word length is 8bits.

It means that on a 44.1kHz session there are 352800 bits per second, or 344.53kbit/s worth of MIDI data available. Now, 344.53/31.25 = 11 samples of accuracy.

When you press a key, your chances are you have latency of 0-11 samples and nothing in the world can compensate that. Until we have MIDI 2.0 implemented.
__________________
Janne
What we do in life, echoes in eternity.
Reply With Quote
  #4  
Old 12-31-2021, 04:35 PM
Will Russell's Avatar
Will Russell Will Russell is offline
Member
 
Join Date: Apr 1999
Location: Newfield, NY (Ithaca)
Posts: 1,152
Default Re: Calculating MIDI latency?

Thanks to everyone who has offered help so far!

512 samples at 96k is only 5ms and the piano tracks in question are off by way more than that...

I totally get that in the end it's gonna be a nudge fest based on how it sounds and feels. I was just trying to establish whatever the measured latency was as a starting point. Based on feedback so far it sounds like that's not really gonna happen.

I just realized that another important detail is that I had Sonarworks Reference 4 on the master which I think affects overall latency even though the headphone mix was derived from a send and wasn't going through the master? Possible? The reported latency on the master from Sonarworks was 10ms. I'm pretty sure that the total system latency was 1054 samples which is only 10ms.

Maybe the player was just really ahead of the groove? Anyway, I'm pretty sure at this point we're just gonna nudge it back until it feels right and then I'm gonna let the dude fix his track. He was going to finesse the performance on his own anyway so here we go!
__________________
Will Russell
Electric Wilburland Studio
https://linktr.ee/wilburland
M1MAX Mac Studio OS 14.4.1, PT2024.3, HDX, S1/Dock
M1 PRO MacBook Pro OS 14.4.1, PT2024.3, BabyFacePro FS
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MIDI recorded latency after playing with no latency genebackmusic Pro Tools 12 8 01-19-2016 02:36 PM
Is 'CALCULATING WAVEFORMS' really necessary? Eric Seaberg Pro Tools TDM Systems (Win) 13 07-01-2009 03:14 PM
Calculating overview jcizagirre Pro Tools TDM Systems (Win) 1 05-23-2009 11:57 AM
Calculating MIDI Latency DonaldM Tips & Tricks 4 10-22-2008 02:59 AM
Calculating Fades cheekypaul 003, Mbox 2, Digi 002, original Mbox, Digi 001 (Mac) 2 11-21-2002 02:07 PM


All times are GMT -7. The time now is 09:09 PM.


Powered by: vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Limited. Forum Hosted By: URLJet.com