Audio & midi not lining up

Have you tried the timestamp checkboxes in Device Setup\MIDI Port Setup?
The buffer sizes can also have an effect on MIDI timing, causing timing errors when set too high.

BTW there’s a very good Sound on Sound article about MIDI timing problems. I don’t remember when it was written, but it is several years old, and just as valid today. It’s well worth tracking down.

Hi johnstaf,

Thanks for replying. Afraid I’ve tried the checking the ‘Use system timestamp’ option, but to no avail.

I have just tried several takes of playing back a quantized four note chord from a MIDI out port to a MIDI in and recording it on a separate channel as suggested by Paul Coyle and tried by the OP. I’ve noticed that each time this is recorded, the gap between the first of the new recorded MIDI notes differs - I had ranges between circa 140-350 samples.

Weirdly, the order of the four notes and their spread always looked roughly the same though - lowest note, followed by the middle two played together and lastly the highest. Here’s a link to a picture of one of these MIDI out to MIDI in recordings:

Like the OP, this makes me think that it must be an issue with Cubase Artist 7 playing wonky MIDI out. It looked like this issue only came recently to the OP, so I’m wondering if there’s a small chance the OP’s difficulties started post updating to 8.1. I mention this as I see Steinberg have issued a sticky about ongoing driver testing for 8.1, however I wouldn’t know any different as my laptop was supplied with the update already installed.

n.b. I’m using a 128 sample buffer and am getting the same issue when reducing or decreasing it.

Hey man, thanks for joining the thread and validating my insaneness :slight_smile:
First things first, I’m actually on W7 and not 8.1

Unfortunately, I have not solved this issue, and have dismissed it as reality due to the following: Upon looking through every single session ever, I’ve always had the issue, and it’s never been bad enough to notice until i looked closely, so I’m just leaving it and manually moving the parts.

This is a bug. Plain and simple. This is not how the DAW is supposed to transmit midi. I understand, there has to be SOME kind of latency, since the DAW and outboard midi hardware cannot predict the future, but 365 samples worth of it? That’s pretty high! Not to mention, as the other poster had validated, even doing a midi loopback produces out of line midi. That’s just not right.

I am about to pass this on to steinberg as a bug. that’s what it is. plain and simple.

How have you set up this “midi loopback”? If I understand you correctly, you have used one of these alternatives:
A) You have simply taken MIDI Out on your interface and connected it to MIDI In.
B) You have connected the MIDI Out on you interface to MIDI In on your synth, and then the synth’s MIDI Thru to your MIDI interface’s MIDI in.
In either case, 365 samples of latency is pretty good. Especially if you’ve chosen the MIDI Thru route. Remember that there are 44 100 samples in one second. That’s 44.1 samples in 1 millisecond. You have a latency of ≈ 9 milliseconds.

All digital equipment introduces delays (latency). This is the reason that it has been recommended to avoid using MIDI Thru for time critical sound (such as drums), since MIDI was introduced in the 80’s.

This is no bug. It’s just the way MIDI works.

Note: If you try any of these setups, don’t forget to block MIDI Thru in Cubase! Otherwise you will create a MIDI feedback loop.

Hey Robrosen,

Thanks for clarifying that you’re on Windows 7. Good to rule out the Win 8.1 update being the issue.

Interesting to hear Svenne’s comment about circa 300 samples latency being the norm - I double checked some projects on my previous system and I was indeed getting about 200 samples delay between the midi note and audio playback on these and it wasn’t noticeable.

However I would have thought this would be the case for processing audio through an external soundcard rather than just playing back a midi note loop. Confused by Svenne’s comments about midi thru too as the Cubase instruction manual says this should be activated, with local off (see link below).

The crux of the issue I’ve been having, though - which I think is the same as Robrosen’s - is that midi playback latency is inconsistent and I’ve now noticed is sometimes far worse than circa 300 samples out. Below is a screen grab of two duplicate midi notes one after the other triggering a Moog arpegiator. The first one comes in over 3,000 samples late (which is very noticeable!), whereas the second has under 1,000 samples latency:

Bear in mind that the above was also with a 400 sample ‘Adjust for record latency’ to bring the recording forward and that these same notes sometimes playback with no latency at all!

@Robrosen could you let me know if the above differs from what you’re experiencing. If so, I’ll submit a separate note to Steinberg.

I keep on banging on about apregiators as this issue is most noticeable when using them. When I’m just playing individual notes, it’s easy to see from the waveform if these are being triggered slightly late and adjust the latency accordingly. With the wall of sound that apregiators create, it’s harder to narrow in on the issue, but I can hear the notes going out of sync. e.g. if I’m triggering a 16 notes per bar apregiator octave on C, bottom C should hit the downbeat each cycle, however sometimes this drifts out of time and flips to top C.

One other thing which I’ve noticed - and might be an issue - is that my ‘Average performance load’ meter at the LHS of the transport panel and in the ‘VST performance’ window regular overloads even though the average performance loads are low. The load randomly spikes when selecting things like audio parts or midi notes, however this doesn’t happen during midi playback or recording.

Again, probably clutching at straws, but could the above be some sort of system interference which is regularly trigging much more latency than I should normally have? In the interim, my hardware synths are gathering dust :frowning:.

Hi


I also in this situation that a every nute get different delay its not just in chord its in just each nute on the melody

But I do not understand something , is there some people here that do not encounter in this problem at all ?
And if all get this problem how you dill with that ?
Its hard to just move the melody end sit it in the start of the bar Because some nute would be late and some sooner


My solution is to just find the sweetspot and get to the hole track delay like -2 to the midi track before record to audio and is still be delay but not to much somtimes one nute get 40 sample and some get 113,80,70 And so on but the range stay between 40-120 sample …and It’s not all steady Each device need to get his timing end check from time to time to see if the timing still the same…hope if its help or somebody have outer solutions …


And I dont think its related to external tools the fact that it happens even without external recording just midi to midi sooo i think its or in the daw or in the soundcard and i check this on cubase 6.5,7,3 logic, ableton, repear ,flstudio… Its happen in alll… I try xp,win7,osx try to play with the bios setting but not update … No happen
Disbale filter, midi emulate direct windows midi and all the stufff…
Please tell me if it happen to all people or is just for some people

Yes it happens to all! That’s what Cubase’s latency compensation features are there for. When you’re using plug-ins this happens automatically. Recorded tracks are shifted forward in time, to compensate for the delays. However, when it comes to external equipment you may need to do some manual labor. Read the Cubase manual.

Could you please explain how you get the MIDI out of your computer and back in, without using any kind of MIDI interface (i.e. external equipment)?

There you have it. It has got nothing what so ever to do with Cubase. It’s just the nature of how digital audio works!

The only solution to this “problem” is to use only analog recording equipment.

Hi thanks

My setup to test the is i have fireface 400 and there two midi port soo i do in this mode
Midi port 1 out conect to midi port 2 in , in cubase i set tow chanel 1 was out to port 1 and the 2 was get in From port 2 in ,
I do not think it’s the software but maybe I thought it’s a problem of the sound card or computer part i dont no lol …

And you said "the only solution is to use analog recording equipment " what kind of you mean like
"Analog Sequencer " or ? You can Give me an example

Like this skandalpro.
https://www.google.se/search?q=analog+recording+equipment&tbm=isch&tbo=u&source=univ&sa=X&ei=YXqOUpeiAqG57AaouIDwDg&sqi=2&ved=0CEsQsAQ&biw=1222&bih=852

lol soo just go back to the past :smiley: Anyway Thank you