Recorded audio out of sync from midi

Author
EricDeluxe
Max Output Level: -82 dBFS
  • Total Posts : 428
  • Joined: 2010/01/18 02:38:58
  • Location: Sweden
  • Status: offline
2014/03/08 13:15:47 (permalink)

Recorded audio out of sync from midi

Hey
 
I got a midi pattern playing a synth lead from my Arturia Microbrute (Analog Hardware). I now want to record it into Sonar X3 Producer. When hitting record it start to record, but about a 16th note off in time (please check images provided). Any idea why this might be? Any settings in midi sync?
" />
" />
 
Thanks a lot!!
 
 

http://soundcloud.com/ericdeluxe - my harder side
https://soundcloud.com/cirque-du-sonique my softer side
***************************************
Sonar Platinum, Windows 10 (64 bit), MOTU Ultralite MK3 Hybrid, Novation SL MKII 25, NI KORE 2, NI Maschine, NI Komplete 9, Yamaha HS50m, AKG K240S, AKG Perception 200, Z3TA 2+, Soundtoys Native Effects, PSP Mixpack 2, several VSTs
****************************************
#1
Noel Borthwick [Cakewalk]
Cakewalk Staff
  • Total Posts : 6475
  • Joined: 2003/11/03 17:22:50
  • Location: Boston, MA, USA
  • Status: offline
Re: Recorded audio out of sync from midi 2014/03/09 08:22:53 (permalink)
Are you  triggering an external device from SONAR via MIDI and recording it via a loopback cable? If so SONAR has no idea about what the latencies imposed by the device itself are. You should get better results treating it as an external insert since that measures delay and compensates for it.

Noel Borthwick
Senior Manager Audio Core, BandLab
My Blog, Twitter, BandLab Profile
#2
EricDeluxe
Max Output Level: -82 dBFS
  • Total Posts : 428
  • Joined: 2010/01/18 02:38:58
  • Location: Sweden
  • Status: offline
Re: Recorded audio out of sync from midi 2014/03/11 17:57:00 (permalink)
Hey Noel
 
I got the audio out from my synth into my Audio interface and set that channel as IN in the audio track. Them MIDI connection is via USB Port. Am I doing something wrong here?? New to hardware gear so...

http://soundcloud.com/ericdeluxe - my harder side
https://soundcloud.com/cirque-du-sonique my softer side
***************************************
Sonar Platinum, Windows 10 (64 bit), MOTU Ultralite MK3 Hybrid, Novation SL MKII 25, NI KORE 2, NI Maschine, NI Komplete 9, Yamaha HS50m, AKG K240S, AKG Perception 200, Z3TA 2+, Soundtoys Native Effects, PSP Mixpack 2, several VSTs
****************************************
#3
brundlefly
Max Output Level: 0 dBFS
  • Total Posts : 14250
  • Joined: 2007/09/14 14:57:59
  • Location: Manitou Spgs, Colorado
  • Status: offline
Re: Recorded audio out of sync from midi 2014/03/12 02:20:58 (permalink)
No, you're doing it the conventional way. What Noel was talking about would not be applicable to a hardware synth because there's no closed audio loop for the External Insert to measure latency on; half the "loop" is MIDI. I think he misunderstood that the the Arturia is just a keyboard synth.
 
Normally, assuming your audio latency compensation is dialed in, the audio from a hardware synth will be recorded late by maybe 3-6 milliseconds relative to the MIDI driving it due to MIDI transmission and synth response delays. There's a Timing Offset setting in Sync and Caching that can compensate for these small MIDI delays with hardware synths, but looking at your screenshot, it appears the audio is early relative to the MIDI by a significant amount. This suggests either audio is overcompensated or MIDI is being sent early. But a discrepancy that large and in that direction might indicate some sort of driver issue.
 
The first thing to do is to make sure your record latency compensation is dialed in so you have a point of reference. The easiest way to do this is to use ASIO driver mode, and download the free CEntrance ASIO Latency tester (or use the External Insert that Noel mentioned) to measure the actual round-trip latency (RTL) with an audio cable patched directly from an output and input on your interface. Then you enter the difference between what CEntrance measures and what SONAR reports for RTL under Driver Settings as the Manual Offset under Record Latency Adjustment on the Sync and Caching page (not to be confused with Timing Offset in milliseconds mentioned above - that should remain 0 for now).
 
Once you've done that, the next thing I would suggest is that you set the  Arturia to use Local Control between its keyboard and synth engine, and record simultaneous MIDI and audio from it into SONAR to check for a timing discrepancy at that point. In that scenario, MIDI should be late by a few milliseconds because the audio latency will be compensated while the MIDI delay is not.
 
If that checks out, try recording audio from the Arturia driven by a MIDI track in SONAR again, and see what you get.
 
Check back in here at that point, and we can determine what needs to happen next based on the results. One thing to try if there are still problems is to connect the Arturia via MIDI DIN connectors on your MOTU interface instead of by USB. Sometimes there can be sync issues between audio and MIDI drivers on different devices.
 
I hope that's understandable. It's a lot easier to do than to describe. There might be faster ways to resolve the problem by trial and error, but it's a good idea to understand what the MIDI and audio latencies are with different devices throughout your system so you really know what's going on. It'll pay off in the long run.

SONAR Platinum x64, 2x MOTU 2408/PCIe-424  (24-bit, 48kHz)
Win10, I7-6700K @ 4.0GHz, 24GB DDR4, 2TB HDD, 32GB SSD Cache, GeForce GTX 750Ti, 2x 24" 16:10 IPS Monitors
#4
TomHelvey
Max Output Level: -80 dBFS
  • Total Posts : 537
  • Joined: 2013/02/26 20:23:54
  • Status: offline
Re: Recorded audio out of sync from midi 2014/03/12 03:00:37 (permalink)
I had a similar problem, drove me nuts for months, all of the audio from my Fantom X was 1/32-1/16 late, I was sliding tracks around, it was a nightmare. It turned out that virtually all of my problems stemmed from using the wrong driver mode for my audio interface. Make sure you're using the ASIO drivers (in Sonar) for your audio interface. If your audio interface comes with a control panel, you should see it when you click ASIO panel button in Preferences -> Driver Settings.

System: i7-6900, 64Gb, AMI X99 Carbon Pro Gaming, AMD Radeon HD 7700, Win 10 Pro
PCIe: UAD Octo
USB: MOTU midi express 128, OB-6 Module, Akai MPK-249, Moog SUB 37, Antelope Orion 32 HD, Softube Console 1, iLok, eLicenser
DAW: Cubase Pro, Ableton Live, Sonar Platinum
Plugins: Waves, UAD, Xfer, Lennar Digital, u-he, Reveal Sound, Spectrasonics, SoundToys, VPS, Blue Cat, iZotope, NI, Valhalla, Lexicon, etc.
 
https://soundcloud.com/thomas-helvey
#5
EricDeluxe
Max Output Level: -82 dBFS
  • Total Posts : 428
  • Joined: 2010/01/18 02:38:58
  • Location: Sweden
  • Status: offline
Re: Recorded audio out of sync from midi 2014/03/12 11:39:57 (permalink)
Hey guys
 
I got ASIO drivers running, its a MOTU Ultralite Hybrid interface.
44100 Sampling rate
Buffer 128/2.9 msec 
 
Will check in later tonight at this, but its very annoying... Thanks for your help!

http://soundcloud.com/ericdeluxe - my harder side
https://soundcloud.com/cirque-du-sonique my softer side
***************************************
Sonar Platinum, Windows 10 (64 bit), MOTU Ultralite MK3 Hybrid, Novation SL MKII 25, NI KORE 2, NI Maschine, NI Komplete 9, Yamaha HS50m, AKG K240S, AKG Perception 200, Z3TA 2+, Soundtoys Native Effects, PSP Mixpack 2, several VSTs
****************************************
#6
brundlefly
Max Output Level: 0 dBFS
  • Total Posts : 14250
  • Joined: 2007/09/14 14:57:59
  • Location: Manitou Spgs, Colorado
  • Status: offline
Re: Recorded audio out of sync from midi 2014/03/12 11:50:01 (permalink)
That should help, and might even resolve the issue by itself. I've seen weird issues like this before with WDM drivers.
 
 

SONAR Platinum x64, 2x MOTU 2408/PCIe-424  (24-bit, 48kHz)
Win10, I7-6700K @ 4.0GHz, 24GB DDR4, 2TB HDD, 32GB SSD Cache, GeForce GTX 750Ti, 2x 24" 16:10 IPS Monitors
#7
EricDeluxe
Max Output Level: -82 dBFS
  • Total Posts : 428
  • Joined: 2010/01/18 02:38:58
  • Location: Sweden
  • Status: offline
Re: Recorded audio out of sync from midi 2014/03/12 19:22:30 (permalink)
Noel Borthwick [Cakewalk]
Are you  triggering an external device from SONAR via MIDI and recording it via a loopback cable? If so SONAR has no idea about what the latencies imposed by the device itself are. You should get better results treating it as an external insert since that measures delay and compensates for it.


Hello Noel.
 
Please bare with me, as english is my second language and also I struggle with some of the terminology, as I am rather new to using Hardware.
 
I am not sure what you are meaning by "treating it as an external insert", but guess you mean "Audion IN"? As you probably know, the Microbrute is an analog hardware synth. I have connected a mono cable from OUT on the Microbrute into mono IN 3 (left) on my audio card. This is what I have chosen as IN in the audiotrack in Sonar. 
 

http://soundcloud.com/ericdeluxe - my harder side
https://soundcloud.com/cirque-du-sonique my softer side
***************************************
Sonar Platinum, Windows 10 (64 bit), MOTU Ultralite MK3 Hybrid, Novation SL MKII 25, NI KORE 2, NI Maschine, NI Komplete 9, Yamaha HS50m, AKG K240S, AKG Perception 200, Z3TA 2+, Soundtoys Native Effects, PSP Mixpack 2, several VSTs
****************************************
#8
EricDeluxe
Max Output Level: -82 dBFS
  • Total Posts : 428
  • Joined: 2010/01/18 02:38:58
  • Location: Sweden
  • Status: offline
Re: Recorded audio out of sync from midi 2014/03/12 20:09:20 (permalink)
Hey
 
When I hit "Measure" in the ASIO Latency utility, I got the following message "The driver requested ASIO reset". And it opens up the MOTU Audio window with Sample Rate (44100) and Samples Per Buffer (256). They are correct. I hit OK but it still ask for ASIO Reset. I tried to reboot computer and Reboot Audio interface (MOTU). Still no luck? What to do?
 
 
brundlefly
...
The first thing to do is to make sure your record latency compensation is dialed in so you have a point of reference. The easiest way to do this is to use ASIO driver mode, and download the free CEntrance ASIO Latency tester (or use the External Insert that Noel mentioned) to measure the actual round-trip latency (RTL) with an audio cable patched directly from an output and input on your interface. Then you enter the difference between what CEntrance measures and what SONAR reports for RTL under Driver Settings as the Manual Offset under Record Latency Adjustment on the Sync and Caching page (not to be confused with Timing Offset in milliseconds mentioned above - that should remain 0 for now).
...




http://soundcloud.com/ericdeluxe - my harder side
https://soundcloud.com/cirque-du-sonique my softer side
***************************************
Sonar Platinum, Windows 10 (64 bit), MOTU Ultralite MK3 Hybrid, Novation SL MKII 25, NI KORE 2, NI Maschine, NI Komplete 9, Yamaha HS50m, AKG K240S, AKG Perception 200, Z3TA 2+, Soundtoys Native Effects, PSP Mixpack 2, several VSTs
****************************************
#9
brundlefly
Max Output Level: 0 dBFS
  • Total Posts : 14250
  • Joined: 2007/09/14 14:57:59
  • Location: Manitou Spgs, Colorado
  • Status: offline
Re: Recorded audio out of sync from midi 2014/03/12 21:38:23 (permalink)
Yeah, the MOTU driver responds oddly to CEntrance; I forgot that. Just hit Cancel instead of OK in the MOTU Console, and it should work correctly after that.

SONAR Platinum x64, 2x MOTU 2408/PCIe-424  (24-bit, 48kHz)
Win10, I7-6700K @ 4.0GHz, 24GB DDR4, 2TB HDD, 32GB SSD Cache, GeForce GTX 750Ti, 2x 24" 16:10 IPS Monitors
#10
EricDeluxe
Max Output Level: -82 dBFS
  • Total Posts : 428
  • Joined: 2010/01/18 02:38:58
  • Location: Sweden
  • Status: offline
Re: Recorded audio out of sync from midi 2014/03/13 10:47:40 (permalink)
Na, doesn't work. I run Windows 8.1 64 bit. Perhaps thats why it doesn't work. It says up to Vista on their site ...

http://soundcloud.com/ericdeluxe - my harder side
https://soundcloud.com/cirque-du-sonique my softer side
***************************************
Sonar Platinum, Windows 10 (64 bit), MOTU Ultralite MK3 Hybrid, Novation SL MKII 25, NI KORE 2, NI Maschine, NI Komplete 9, Yamaha HS50m, AKG K240S, AKG Perception 200, Z3TA 2+, Soundtoys Native Effects, PSP Mixpack 2, several VSTs
****************************************
#11
brundlefly
Max Output Level: 0 dBFS
  • Total Posts : 14250
  • Joined: 2007/09/14 14:57:59
  • Location: Manitou Spgs, Colorado
  • Status: offline
Re: Recorded audio out of sync from midi 2014/03/13 13:51:49 (permalink)
Hmmm.... that's possible. MOTU's drivers will have changed for Win8 so canceling the reset may not work the way it used to even though CEntrance seems to be recognizing the driver.
 
In that case, you can do it the old fashioned way by re-recording an audio track, zooming in and using "nudge" to align the recorded  track to the source track, and noting how many samples you had to nudge (typically about  1ms = 44 samples). That's your manual offset. Note that you'll have to trim the beginning of the clip a little to allow nudging earlier.
 
Or you can add SONAR's External Insert to an FX bin, set the I/O channels, and click the Delay button to measure latency. I'm not exactly sure why, but I've found that you have to add the ASIO buffer size (128 in your case) to the reported value to get the correct total RTL.
 
BTW, have you re-checked the MIDI-Audio sync now that you're using ASIO drivers? The bulk of the issue may already have been fixed by that.
 
 

SONAR Platinum x64, 2x MOTU 2408/PCIe-424  (24-bit, 48kHz)
Win10, I7-6700K @ 4.0GHz, 24GB DDR4, 2TB HDD, 32GB SSD Cache, GeForce GTX 750Ti, 2x 24" 16:10 IPS Monitors
#12
Jump to:
© 2024 APG vNext Commercial Version 5.1