The No.1 Website for Pro Audio
 All  This Thread  Reviews  Gear Database  Gear for sale     Latest  Trending
Why Cubase Shift my midi??
Old 4th December 2006
Gear Nut

Why Cubase Shift my midi??

Hello fellow Slutz!
I'm having a problem with my cubase sx seup, and I can't understand why!!
I have a Carillon PC, the "biggest" model, and my soundcard is an RME 9652 Hdsp,connected via ADAT with some decent converters.
I usally keep my Latency very low from the Rme panel, but when I'm using external synths or internal vst instruments I'm having big delay problems.When I play some notes, I actually SEE them on display,but then,after a millisecond the notes are "shifted back" and the part goes totally off time.
I really can't understand why this happens, I can't even hear a latency between my playing and the sounds,but on the grid my notes are totally moved.
Has anyone of you some opinions on this issue?I know that maybe is a totally dumb question, but i'm getting crazy to understand!!
THank you in advance for any advice..

Old 4th December 2006
Here for the gear

PC Windows MIDI port configuration and troubleshooting
This article mainly applies to PC Windows systems running Cubase SE/SL/SX 3.0.1 and Nuendo 3.0.1 or higher only but contains general information for all users of previous versions too (e.g. Cubase LE).

General advice for using MIDI on PC Windows systems
These are the basic steps to check when you experience problems with the stability of MIDI communication on your PC system:
• It is recommended to have DirectX9.0c installed! Please update the DirectX version if this is not the case. DirectX9.0c is automatically installed with Windows XP SP2. You can also download the current version separately here.
• If you have persistent timing problems (shifted notes etc.) with native or emulated DirectMusic ports please check the option “Use System Timestamp” provided in the DirectMusic section of the Device Setup dialogue. This option uses another timing reference in your system when enabled.
• The option "Use System Time Stamp" is also available for Windows MIDI ports since Cubase SE 3, SL & SX 3.1 and Nuendo 3.1.
• If you experience trouble while receiving/transmitting SysEx data through native or emulated DirectMusic MIDI ports please check if the Windows MIDI (MME) ports can be of help. To gain access to all available driver architectures please see sections below about the “ignoreportfilter” & “enableemulated” switches.

Further details using MIDI on PC Windows: What´s the issue?
Using MIDI interface port drivers on PCs with Windows XP in conjunction with cutting edge MIDI/Audio sequencer applications like Cubase SL/SX or Nuendo, which mainly rely on Microsoft’s current DirectMusic (as part of DirectX) API for MIDI communication, can sometimes be confusing for the user. This is due to the fact that it is possible for providers of MIDI interface drivers to deliver their drivers in different “flavors”. Modern MIDI interfaces like Steinberg’s MIDEX 3 and MIDEX 8 interfaces are installed with real native DirectMusic drivers whereas it is still quite common for other interfaces to use a predecessor API to provide drivers for the Windows MIDI system. DirectMusic itself has a function to “mirror” these Windows MIDI ports to show up as “emulated DirectMusic” ports. Unfortunately, this can lead to a quite nice array of problems when using an inappropriate port driver architecture:

• Using emulated DirectMusic ports often results in shifted MIDI events while recording (events are recorded too late or too early)
• Sometimes no MIDI events are recorded at all
• Sometimes stuck notes or several events stacked on top of each other are recorded instead of being consecutive
• Generally bad or wacky MIDI timing on playback
• Double or triple recordings of the same MIDI events due to using different driver architectures at the same time

Former versions of Cubase SL/SX and Nuendo (before 3.0.1) used a MIDI port filter to guess the most appropriate MIDI interface port type. The detection often displayed native DirectMusic drivers (if available at all) and the emulated versions of installed Windows MIDI drivers per default. But as most interface drivers are delivered for Windows MIDI only, such interfaces could be only used as emulated DirectMusic drivers with the consequences described above. Intervention from the user was needed to unhide the filtered Windows MIDI ports followed by a necessary re-configuration of the MIDI Setup in the Device Setup dialogue to make sure that no ports are used twice or three times due to the disabled MIDI port filter.

The new MIDI port filter used by Cubase SL/SX & Nuendo 3.0.1
Since the release of Cubase SL/SX & Nuendo 3.0.1 we have changed the filter mechanism to pick the MIDI ports provided by the MIDI port drivers of your Windows system.

From now on the default behavior will be as follows:
• If native DirectMusic drivers are present these ports will be used (e.g. for the MIDEX 3 or MIDEX 8 MIDI interfaces)
• If there are no native DirectMusic drivers available the Windows MIDI (MME) ports will be used instead of emulated DirectMusic ports as it was the case in previous versions
• Emulated DirectMusic ports won’t be used any longer by default!
This should be the most common solution for most setups, especially for users having issues with MIDI problems due to emulated DirectMusic ports in the past.

A manual configuration of MIDI ports should no longer be necessary.

Advice for a proper MIDI port setup
If you have updated from previous versions of Cubase SL/SX or Nuendo to version 3.0.1 please make sure to check the following points:
• If you have used the “ignoreportfilter” file in the past to get your Windows MIDI ports displayed please move this file back into the folder “midi port enabler” inside the program application folder where Cubase or Nuendo has been installed. It is essential to ensure that this file is no longer available in the main folder of the application but in the “midi port enabler” folder only.
• After that please check your MIDI port configuration in the menu >Devices >Device Setup… and look in the section for “DirectMusic”. You should not see emulated ports any longer, instead the application has detected the appropriate MIDI ports dependent from the used architecture of the MIDI port drivers automatically

How to deal with “Pending Connections”
While the improved filter mechanism leads to easier handling and configuration of your MIDI ports it may occur that you see a “Pending Connections” dialog on loading projects saved with versions prior to 3.0.1. This happens when your project file had e.g. emulated DirectMusic MIDI ports assigned to MIDI tracks. As these ports are no longer available per default the application asks you to resolve such connections.

Upon loading such a project the following will happen:
• A ???Pending Connections“ dialog will appear
• This dialog suggests the appropriate Window MIDI ports automatically to resolve pending connections to former emulated DirectMusic ports used
• Accepting this dialog with “OK” loads the project with correctly re-connected MIDI tracks without further intervention by the user. However you can also re-route the ports by yourself if needed.
• The application also saves such re-routings in the “default.xml” file within the preferences of the application to know how to re-route pending MIDI port connections in the future.

Additional possibilities to configure MIDI ports (for troubleshooting only)
It is still possible to use the “ignoreportfilter” file in the same way as prior to Cubase SL/SX & Nuendo 3.0.1. Additionally, there is also a new file called “enableemulated”. These two files are stored inside a folder named “midi port enabler” which can be found inside the Cubase / Nuendo application folder.

This will happen when you use these files:
• “ignoreportfilter” will show you every MIDI port installed on your system independent of the used driver architecture. When you use e.g. a MIDEX 3 or 8 you can use this to get the Windows MIDI ports of the MIDEX displayed inside the application (additionally to the already displayed native DirectMusic ports). Generally speaking, the “ignoreportfilter” disables any filter to hide specific MIDI port architectures.
• “enableemulated” will show you all emulated DirectMusic ports but will not unhide Windows MIDI ports itself. This can be necessary if you have problems with the Windows MIDI ports of your MIDI interface but there are no native DirectMusic ports available for your interface. Fortunately, this situation is happens only in a very rare number of cases.

These files are used as a sort of “switch”. To use these “switches” just move the desired file from the folder “midi port enabler” one level up to the main application folder, e.g. to folder “\program files\steinberg\cubase sx 3\”.

Please note that using these files makes it mandatory to check your MIDI port setup inside the application for redundant MIDI ports (i.e. those that appear twice or even three times). Use menu >Devices >Device Setup… for this. You should not use more than one driver architecture for a specific MIDI device at a time. For example, using the "ignoreportfilter" with a MIDEX 3 or 8 will show you the native DirectMusic ports listed and the Windows MIDI ports at the same time. This means that you will record from two ports at once when your MIDI tracks are set to "All MIDI Inputs". To solve this, please deactivate the ports either for DirectMusic or Windows MIDI.

May 15, 2004: Technical
PC MIDI Timing and Nuendo
Users of Steinberg’s Nuendo and Cubase often run into trouble with MIDI timing. I’m not affiliated with Steinberg, but I am a programmer, and I’ve done a lot of experimenting with MIDI timing on the PC. Here is, I hope, the definitive list of problems and workarounds. Note that I talk mostly about Nuendo here, but Nuendo and Cubase SX are the same application under the covers, and everything I write applies to both. The explanations are lengthy, but it’s a complicated topic, where many problems can cause the same system, and I think it’s important to understand the background; if you think I should provide a long and short version of this FAQ, leave a comment to that effect.

1. Emulated Ports
By far, the most common cause of MIDI timing problems is using emulated MIDI ports. Once upon a time, there was only one type of MIDI driver, known as Windows MIDI. Later on, Microsoft introduced a new driver type, DirectMusic, which could theoretically offer better timing, but due to some limitations, this was mostly taken advantage of by gaming cards, not pro-audio cards.
To encourage application developers to switch from Windows MIDI to DirectMusic, Windows provides “emulated” DirectMusic ports for all Windows MIDI drivers; as far as the application knows, it’s talking to a genuine DirectMusic driver, with Windows doing the translation under the covers. This means that an application like Nuendo can, in theory, be written solely to the DirectMusic interface, and if your card doesn’t actually support DirectMusic, Windows will cover for it.
The reality is more complicated; sometimes the emulated DirectMusic drivers don’t work at all, or only work in one direction. Sometimes the emulated ports don’t work but the original Windows MIDI ports do. Sometimes the timing is off on one port or the other. Sometimes there are actually both Windows MIDI and genuine DirectMusic drivers for a device. So if there is both a Windows MIDI and DirectMusic version of a port, Nuendo tries to guess which one is the right one, and it filters out the other. Sometimes—usually, in my experience—it guesses wrong, especially where emulated ports are involved. And on some systems, though certainly not all, the emulated ports have timing problems.
(By the way, these two driver types—driver APIs, really—have nothing to do with WDM vs. MME drivers. Those are driver models, and affect how a driver is built, not what API it uses. A WDM driver can be either Windows MIDI or DirectMusic, and I believe the same is true of MME. We don’t care about WDM vs. MME here.)
The fix
Nuendo keeps a zero-length file called ignoreportfilter in the directory C:\Program Files\Steinberg\Nuendo\MIDI Port Enabler. Using Windows Explorer, you can drag this file up one level to the Nuendo directory, restart Nuendo, and you will now see both the emulated and non-emulated ports. In my experience, you nearly always want the non-emulated ports; you should go into Device Setup and set “Show” to “No” for the emulated DirectMusic ports so that you don’t accidentally use them.
This will only solve your problem if yours is a system where the emulated ports have timing issues. On my system, they don’t.
2. The two-clock problem
All MIDI interfaces on Windows timestamp their data before providing it to the application. This avoids timing problems when the application doesn’t immediately see the incoming notes, perhaps due to higher-priority interrupts, or things chewing up CPU time, or simply a burst of notes too quick for the app to process. The app just looks at the timestamp, does a quick calculation, and poof: instant latency compensation for all MIDI. This has been part of the MIDI driver spec forever.
But Windows provides two different multimedia timers - specifically, one called timeGetTime, or TGT, and one called QueryPerformanceCounter, or QPC. The QPC timer is more precise (although the actual precision is up to the motherboard), and often more accurate, but it’s only available on newer versions of Windows, and there were some motherboards a while back that had major inaccuracies with it, and some current dual-CPU boards still don’t keep the two CPUs in sync.
So drivers, especially Windows MIDI drivers, that descend from older code, or have to work on older OS’s, or that are simply more cautious, are likely to use TGT, which is what Nuendo normally uses; the VST and ASIO specs are based on TGT. Newer drivers, especially those written under DirectMusic, are likely to use QPC. Since the two end up out of sync on most PCs, you’ll end up with timing problems in Nuendo if your MIDI driver uses QPC.
This problem is likely to affect any sequencer, not just Nuendo - although some sequencers might be based around QPC instead of TGT, and thus they’ll have problems with exactly the interfaces that work fine on Nuendo and vice versa. Sonar does have a hidden option that lets you ignore ALL timestamping from the interface, which is fine unless Sonar can’t keep up with the interface, at which point you’ll have really sloppy timing on ANY interface.
The fix
Nuendo and Cubase 2.20 provide an option in the DirectMusic settings called “Use system timestamp”. This tells Nuendo that for MIDI tracks, they should keep track of time using QPC, not TGT. This affects only DirectMusic drivers. That means that if you have a Windows MIDI driver that uses QPC, you’ll have to use the emulated DirectMusic drivers, which is the exact opposite of what is normally recommended! Hopefully future versions will offer this option in both DirectMusic and Windows MIDI flavors. Meanwhile, hopefully your system isn’t one of those that has timing problems on the emulated ports. My system, an Asus P4C800-E, doesn’t, but certainly some do. A future version of MIDITime will test DirectMusic emulated ports as well, so you’ll know exactly what you’re up against.
The test
If you want to be certain that this is the problem you’re having, and help out the user community at the same time, you can download my MIDITime Utility. You take a cable from a MIDI output port to a MIDI input port, and run the utility until your clocks get out of sync; it then tells you which clock is correct, and thus what setting to use. Simple and definitive.
And please, if you run the utility, and your interface isn’t already listed below, e-mail me the results so I can share them! (I’d prefer that you not leave them as comments, so others don’t have to wade through the details.) The utility can take up to an hour to run (it waits that long to decide that your clocks are staying in sync), but more often takes about 5 minutes.
If there are any Windows programmers out there interested in slapping a simple GUI on this app, drop me a line. I never bothered to learn MFC, and with Windows.Forms and .NET coming of age, it’s not really worth it now.
The results
The following MIDI interfaces will work best with the DirectMusic emulated ports and the “Use System Timestamp” option checked:
• Echo Mia
• EMU 1212M
• Frontier Design Dakota
• M-Audio 410 Firewire
• M-Audio Audiophile 2496
• MOTU Express XT
• Steinberg MIDEX-8
• Terratec EWS88MT
• Yamaha SW1000XG
The following MIDI interfaces will work best with the native DirectMusic ports and the “Use System Timestamp” option checked:
• Wami Rack-24
The following MIDI interfaces will work best with the “Use System Timestamp” option unchecked, and (presumably) the non-emulated Windows MIDI ports:
• Aardvark LX6
• Aardvark Q10
• Edirol UMT-880
• Digi 001
• Emagic Unitor8 MK1
• Emagic Unitor8 MK2
• Emagic AMT-8
• M-Audio MIDISport
• RME Digiface
• RME 9632
• Roland SC-8820
• Roland Super MPU-64
• Roland UM-4
The following lucky motherboards have clocks that don’t drift, and so can use any interface with any setting:
• Asus A7V333
• Asus A7N8X-X
• Asus P4D-800D
• Asus P4T-533C
• Asus TUSL2-C
3. Constrain Latency Compensation
One person has reported that using the Constrain Latency Compensation option—which should, in theory, affect only audio—also improved his MIDI timing. This has not been confirmed by other reports, but it’s certainly easy enough to try. If you find this setting to be helpful, please let me know.
Old 4th December 2006
Gear Maniac
ONE LUV's Avatar

i got the same problem

if you need to fix it quick restart the computer. 1 of three times it works. you need a bit of luck
Old 4th December 2006
Gear Nut

wow!!!lot to read!
thanx mates!!!!
Old 8th October 2007
Gear Nut
skopje's Avatar


How did you all get on, did you get your midi timing sorted?

Old 8th October 2007
Lives for gear

check your latency as well. if its high and you have a quantize on, you may be snapping ahead or behind where you want
Old 8th October 2007
Lives for gear
luctellier's Avatar
I had the same problem and checked the "Use System Timestamp" box in Cubase SX in the MIDI preferences. Now everything's working fine.
Old 9th October 2007
Here for the gear

Originally Posted by Richuill View Post
The following lucky motherboards have clocks that don’t drift, and so can use any interface with any setting:
• Asus A7V333
• Asus A7N8X-X
• Asus P4D-800D
• Asus P4T-533C
• Asus TUSL2-C
Those all seem to be for older CPU´s. Any idea of "today´s" motherboard with good clocks?
Old 11th January 2008
Gear Addict
Ive tried all these great and reasonable hints from nice ppl who were trying to help, god bless them. None of it made any difference. My midi notes when recording would jump to the left as they were being recorded in.. and be way out of sync...almost a bar out. You could actually watch the bars as youre recording into nuendo and see the notes land in the right place in the part...and then mysteriously "fly" left to be out of sync.

Here is the real solution and how to fix it....(this has taken me weeks of research)

At very first time when you start a project, using the Audio Master timing instead of MIDI Timing. Even you do not have the audio track in the Sequencer yet.


Under the Transport -> Sync Setup and Time Code Source to select VST System Link, instead of MIDI timecode.

I dont know why it works, but it does. Good luck

Old 11th January 2008
Gear Addict
hackenslash's Avatar

M-Audio USB MIDI devices should be in the first list, using emulated ports and system timestamp.

Last edited by hackenslash; 11th January 2008 at 03:10 PM.. Reason: Clarification
Old 1st January 2009
Here for the gear

Originally Posted by Blackout- View Post
Ive tried all these great and reasonable hints from nice ppl who were trying to help, god bless them. None of it made any difference. My midi notes when recording would jump to the left as they were being recorded in.. and be way out of sync...almost a bar out. You could actually watch the bars as youre recording into nuendo and see the notes land in the right place in the part...and then mysteriously "fly" left to be out of sync.

Here is the real solution and how to fix it....(this has taken me weeks of research)

At very first time when you start a project, using the Audio Master timing instead of MIDI Timing. Even you do not have the audio track in the Sequencer yet.


Under the Transport -> Sync Setup and Time Code Source to select VST System Link, instead of MIDI timecode.

I dont know why it works, but it does. Good luck

I have the same problem. Thanks for all the useful information. I have tried the sync setup and tried the vst system link. Can you pleace tell me where to find audiomaster timing instead of midi timing?
Old 1st September 2011
Gear Nut

Appreciate this in an old thread but wanted to chime in and say that activiating the constrain delay compensation has made a positive difference to my midi timing, I'd also suggest using placing the audio buffer really low just when you record midi parts.

It's a horrible issue though and steinberg really should have nailed this along time ago.
Old 27th May 2014
Ok I found using a midi cable in to my soundcard fixed the early midi problem in Cubase with a USB keyboard
Post Reply

Welcome to the Gearslutz Pro Audio Community!

Registration benefits include:
  • The ability to reply to and create new discussions
  • Access to members-only giveaways & competitions
  • Interact with VIP industry experts in our guest Q&As
  • Access to members-only sub forum discussions
  • Access to members-only Chat Room
  • Get INSTANT ACCESS to the world's best private pro audio Classifieds for only USD $20/year
  • Promote your eBay auctions and listings for free
  • Remove this message!
You need an account to post a reply. Create a username and password below and an account will be created and your post entered.

Slide to join now Processing…
Thread Tools
Search this Thread
Search this Thread:

Advanced Search
Forum Jump
Forum Jump