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 > Pro Tools
Register FAQ Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #41  
Old 10-27-2022, 12:52 PM
Dizzi45Z Dizzi45Z is offline
Member
 
Join Date: Sep 2007
Location: UT, United States
Posts: 2,033
Default Re: MIDI gets recorded early

Quote:
Originally Posted by massivekerry View Post

You should also notice that there is a GLOBAL MIDI PLAYBACK OFFSET
that can be entered. This is detailed on page 812 of the Pro Tools Reference Guide, and may be helpful if the problem is in your particular system. You'll find the part about MIDI Real-Time Properties on page 814. Really, you should read this entire chapter.
I'll have to check this out. But wouldn't this be to compensate for the latency of a MIDI device (the time it takes the MIDI keyboard, etc to register the note and spit out the midi information and then be received into the sequencer)? I can't imagine that this would be able to compensate for every VI since every VI likely responds differently.
__________________
recording.guru : FREE Pro Tools Tips and 19 Video Basic Training Course
Pro Tools HDX 2023.9
Mac Pro 7,1 3.2 GHz 16-Core Xeon W
160 GB RAM
macOS 11.7.4
Noisebox Studios -Utah Recording Studio
Reply With Quote
  #42  
Old 10-27-2022, 02:25 PM
massivekerry's Avatar
massivekerry massivekerry is offline
Member
 
Join Date: Jul 2005
Location: Portland, OR
Posts: 675
Default Re: MIDI gets recorded early

Quote:
Originally Posted by Dizzi45Z View Post
I'll have to check this out. But wouldn't this be to compensate for the latency of a MIDI device (the time it takes the MIDI keyboard, etc to register the note and spit out the midi information and then be received into the sequencer)? I can't imagine that this would be able to compensate for every VI since every VI likely responds differently.
Yes, I think that's the idea, especially with Devices that don't have USB-input (ie - DX7->MIDI interface->USB port). Also, specifically for older (or non-Avid) interfaces that don't have the TDM/PCI-e low-latency benefits.

As the manual says:
Quote:
This capability is provided in large part to compensate for the audio monitoring latency in host-based Pro Tools. If you are monitoring the output of external MIDI instruments with an external mixer or sound system (or headphones), there is no latency. If, however, you are monitoring the output of your MIDI devices through a Pro Tools interface (such as 003 family devices), your MIDI tracks sound slightly later than your audio tracks. The larger the setting for the H/W Buffer Size (128, 256, 512, or 1024 samples), the larger the latency.
__________________
Kerry Smith
http://apothekerry.com

Mac Studio Ultra : 128GB RAM : Ventura 13.6 : Carbon : PT Ultimate 2023.12 : S1 : Metagrid Pro

Last edited by massivekerry; 10-27-2022 at 02:26 PM. Reason: clarification
Reply With Quote
  #43  
Old 02-02-2023, 11:09 AM
smokeydan smokeydan is offline
Member
 
Join Date: May 2010
Location: Manchester UK
Posts: 59
Default Re: MIDI gets recorded early

Quote:
Originally Posted by Dizzi45Z View Post
I'm not convinced this is a bug. I made a video explaining why:

Pro Tools Record MIDI Early?
I did a similar test a couple of years ago and came to the same conclusion.

Having said that, I think there are still actual bugs with MIDI and the delay compensation.

I just updated to 2022.10 on the HDX rig, and for the last few weeks, I have been recording a live band set up. The keyboard player has a midi keyboard connected via USB to a Mac laptop using standalone Arturia instruments hosted there.

I am recording the audio from the interface of this keyboard rig, but also recording the MIDI direct out of the controller keyboard onto an instrument track.

The buffer setting (on the Arturia Instrument on the keyboard rig) is set to minimum, and off the top of my head, supposedly just over 1ms of latency according to the preferences window in the Arturia software. There will obviously also be a slight delay due to the digital to analog conversion in the interface connected to the keyboard rig, and another slight delay due to the analog to digital conversion in the interface of the Pro Tools rig we are recording onto) but it shouldn't amount to much, I'm guessing maybe in the order of 3ms altogether.

But I have consistently got the MIDI recorded onto the VI track around 1500 - 1550 samples (around 30ms @ 48k) early compared to the audio recording (which appears to be in time)

I have tried with different VIs in the instrument track, different buffer settings on the pro tools rig, and it never seemed to change, its always out by the same. I tried changing the routing of the VI so it went direct to an output, I tried disabling the delay compensation, nothing much changed.

I was looking through preferences and saw under MIDI - "Delay Compensation for External Devices" - which I think I had noticed before, but maybe assumed that this was to do with compensating for MIDI delays when playing back MIDI performances on external; modules/synths. Anyway, I unchecked MIDI Notes and Controllers, tried a test recording, and the difference was down to a much more reasonable 220 samples (4ms), which I think could possibly be accounted for by latency in the keyboard rig itself, and I doubt its the sort of delay that most keyboard players would notice. (I'm sure many will disagree!)

But the kicker is, when I switched this MIDI "Delay Compensation for External Devices" back on, the 1500 sample discrepancy did NOT come back. Somehow flipping it off and back on again appears to have reset something in the delay compensation engine.

Sometimes, even with just audio in the picture, Pro Tools delay compensation engine can get confused when plug ins are added, or routing is changed. I've occasionally had an unexplained delay between left and right on the main stereo bus after inserting a plug in or changing some routing. Make the channel inactive and then active again, and it normally seems to cure itself - so I'm wondering if somehow there's was a glitch in the compensation engine that only got cured when I reset this preference?
Possibly compounded or perpetuated by me importing all the same tracks and routing from a template session?

But now, even if I go back to an earlier session where this problem was occurring, I cannot recreate the issue. The takes that were out are still out by 1500 ish samples, but when I do a fresh recording, its back down to just over 200 samples.

And if I record the MIDI directly onto an Instrument track and then print the audio from that, as far as I can see, zooming right in, they are now precisely aligned.

Something to try anyway, if you are experiencing this kind of extreme early MIDI recording.
__________________
Mac Pro 5,1, 2 x 3.46Ghz six core Xeon, 64GB RAM, Mojave, PT Ultimate 2022.10, H/D Native PCie, Avid Omni interface.
Mac Pro 6,1 12 core, 64GB RAM, Catalina, PT Ultimate 2022.10, 2xHDX cards & UAD Octo PCIe card in Sonnet TB Chassis, 2 x Lynx Aurora 16 interfaces.
MacBook Pro 32GB RAM Catalina, PT 2022.10, UAD Apollo X4

Last edited by smokeydan; 02-02-2023 at 11:22 AM. Reason: clarity
Reply With Quote
  #44  
Old 05-24-2023, 11:18 AM
resonatee resonatee is offline
Member
 
Join Date: Dec 2020
Location: Poland
Posts: 97
Default Re: MIDI gets recorded early

Ok, so i _think_ i found a workaround for the problem that was bugging me, that is : Protools was recording the midi data early, and you basically never did hear what you just played, frustrating.

I got inspired by a gearslutz post here : https://gearspace.com/board/showpost...&postcount=723

The solution is to disable all delay compensation when recording midi parts.
The shortcut is called "Use Delay compensation" and you can invoke it with
ctrl-shift-S and type Use Delay compensation. All delay indicators in the mixer should go blank and the "Dly" at the top bar will disappear. Record the part, and voila! it sounds exactly in time just as you heard it while recording. Amazing.

you can make a custom keyboard shortcut if you are on a newer version of PT. Test it and tell me what you think guys!
__________________
__________________________________

cMP 2 x 3,46, 128GB Ram
Monterey 12.7.4
Metric Halo 3d 2882 I/O
Lucid 88192 with Blue Sky 5.1 monitoring
10gbE ethernet with True Nas storage
Reply With Quote
  #45  
Old 05-24-2023, 12:48 PM
Simon2065 Simon2065 is offline
Member
 
Join Date: Mar 2016
Location: Brisbane
Posts: 55
Default Re: MIDI gets recorded early

Hi

The thing that caused issues with early recording of midi for me was the Ignore Errors checkbox in the audio engine setup. If it was checked (I.e set to ignore errors) then midi was recorded early.


Sent from my iPhone using Tapatalk
__________________
Simon2065

Pro Tools Ultimate 2023.12 Win 10 Pro 22H2 Gigabyte GA-Z270 i7-7700K 32GB Ram UAD Apollo 8
Reply With Quote
  #46  
Old 05-25-2023, 04:06 AM
RobertDorn RobertDorn is offline
Member
 
Join Date: Oct 2008
Location: Netherlands
Posts: 437
Default Re: MIDI gets recorded early

Quote:
Originally Posted by resonatee View Post
Ok, so i _think_ i found a workaround for the problem that was bugging me, that is : Protools was recording the midi data early, and you basically never did hear what you just played, frustrating.

I got inspired by a gearslutz post here : https://gearspace.com/board/showpost...&postcount=723

The solution is to disable all delay compensation when recording midi parts.
The shortcut is called "Use Delay compensation" and you can invoke it with
ctrl-shift-S and type Use Delay compensation. All delay indicators in the mixer should go blank and the "Dly" at the top bar will disappear. Record the part, and voila! it sounds exactly in time just as you heard it while recording. Amazing.

you can make a custom keyboard shortcut if you are on a newer version of PT. Test it and tell me what you think guys!
This is all part of the 'critical bug PT-263943' because Pro Tools isn't capable of delay compensating properly for all things MIDI related.

Turning off delay compensation for tracks with a virtual instrument on it somehow acts as a workaround, but please don't put any plugins on the track with significant amounts of sample delay on tracks with plugin delay compensation turned off, because that will cause everything to run out of sync again.
__________________
Apple MacBook Pro M2 Max, 96GB ram | Pro Tools HDX | Avid MTRX | Pro Tools Ultimate 2023.12 | macOS 13.6.3
Reply With Quote
  #47  
Old 05-25-2023, 01:33 PM
Dizzi45Z Dizzi45Z is offline
Member
 
Join Date: Sep 2007
Location: UT, United States
Posts: 2,033
Default Re: MIDI gets recorded early

Quote:
Originally Posted by resonatee View Post
Ok, so i _think_ i found a workaround for the problem that was bugging me, that is : Protools was recording the midi data early, and you basically never did hear what you just played, frustrating.

I got inspired by a gearslutz post here : https://gearspace.com/board/showpost...&postcount=723

The solution is to disable all delay compensation when recording midi parts.
The shortcut is called "Use Delay compensation" and you can invoke it with
ctrl-shift-S and type Use Delay compensation. All delay indicators in the mixer should go blank and the "Dly" at the top bar will disappear. Record the part, and voila! it sounds exactly in time just as you heard it while recording. Amazing.

you can make a custom keyboard shortcut if you are on a newer version of PT. Test it and tell me what you think guys!
Question for you. Do your instrument tracks have any sends? Or are they routed to anything other than your main out? I ask because that often adds latency to the Instrument tracks when Delay Compensation is on.

In my opinion, the real problem is that Pro Tools should follow the same behavior as audio tracks. When Audio tracks are record enabled, the delay compensation for that track is turned off allowing for the lowest latency possible. This doesn't happen on Instrument tracks.

I still think the culprit with people thinking the MIDI is early is not Pro Tools. It is the fact that when there is latency, we have a tendency (although we may not realize it) to play early so that the sounds sound in time.

To test this theory, make sure that there are no plugins on your master faders and that the instrument track is routed directly to the main output and there are no sends on that track. Mute the instrument track (so you can't hear the sound of the instrument), turn on the metronome and then play a note to the metronome beat as accurately as you can. Then analyze where the midi is being placed.
__________________
recording.guru : FREE Pro Tools Tips and 19 Video Basic Training Course
Pro Tools HDX 2023.9
Mac Pro 7,1 3.2 GHz 16-Core Xeon W
160 GB RAM
macOS 11.7.4
Noisebox Studios -Utah Recording Studio
Reply With Quote
  #48  
Old 04-09-2024, 09:44 PM
gills gills is offline
Member
 
Join Date: Oct 2020
Location: Los Angeles
Posts: 31
Default Re: MIDI gets recorded early

Just read through this whole thread. Here's a summary for newcomers.

Hitting a note when recording MIDI will trigger two events:
  1. The note is printed to the timeline at the exact moment you hit it (except for insignificant USB cable latency from your MIDI controller).
  2. But during record, the note is actually triggered out loud after the latency time introduced by the session's plugins
When there's significant latency, most of us intuitively play early so that our notes trigger in time. But when playing back, those notes no longer trigger where they did when you were recording. Instead, they trigger where they were printed.

I disagree with the notion that this is desired behavior. Pro Tools should be printing the note at the same moment it triggered it during record.

Better yet, during record, it should trigger the note at the moment you play it (zero latency) so you can play a good performance. That's the moment it's capturing and printing the note at, so it's the moment we should hear the note.

Last edited by gills; 04-16-2024 at 12:51 PM.
Reply With Quote
  #49  
Old 04-11-2024, 01:49 PM
resonatee resonatee is offline
Member
 
Join Date: Dec 2020
Location: Poland
Posts: 97
Default Re: MIDI gets recorded early

Did anything change with 2024.3.1?
__________________
__________________________________

cMP 2 x 3,46, 128GB Ram
Monterey 12.7.4
Metric Halo 3d 2882 I/O
Lucid 88192 with Blue Sky 5.1 monitoring
10gbE ethernet with True Nas storage
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
Recorded Audio from MIDI Instrument Placed Early on Timeline? taylor4814 Pro Tools 2019 10 03-02-2020 11:28 AM
MIDI being recorded early rosindabow Pro Tools 2018 3 10-15-2019 05:40 AM
Recorded audio placed 40ms too early peteage FireWire & USB Audio Interfaces (Win) 3 09-11-2013 08:05 PM
Midi recorded early allstaar macOS 2 05-09-2011 03:27 PM
Click plug in is early when recorded stormpro Pro Tools TDM Systems (Mac) 5 08-13-2006 10:23 AM


All times are GMT -7. The time now is 08:34 AM.


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