jimmypop13
Max Output Level: -90 dBFS
- Total Posts : 25
- Joined: 2011/01/09 20:03:24
- Status: offline
Is this a latency issue?
I've noticed all my midi notes are always slightly before the beat, which makes quantizing and importing midi data to sibelius a real chore because I have to click nudge quite a few times and I don't know the shortcut, lol, and it just takes forever. Is this as simple as lowering my latency to fix? Thanks
|
A1MixMan
Max Output Level: -58 dBFS
- Total Posts : 1706
- Joined: 2003/11/19 16:15:11
- Location: SunriseStudios
- Status: offline
Re:Is this a latency issue?
2011/03/30 14:54:05
(permalink)
Can you descibe your problem better?
|
slartabartfast
Max Output Level: -22.5 dBFS
- Total Posts : 5289
- Joined: 2005/10/30 01:38:34
- Status: offline
Re:Is this a latency issue?
2011/03/30 15:22:49
(permalink)
If your midi notes are coming from your performance on a controller, then the fact that they are occurring before the beat is most probably because you are playing before the beat. The "midi latency" i. e. the time it takes for the midi controller to send a midi message to Sonar is usually very short, and would cause the note-on to fall after the beat if that were the only issue. A very large midi buffer might make this latency significant. Round trip latency, i. e. the time it takes for the midi message to get to Sonar and then through the synthesizer software and the effects software and back out of your speakers is the usual problem. If through practice, you have learned to compensate for a long round trip latency by playing early, then it might move your notes ahead of the beat. Usually that level of latency will provide a noticeable delay, and you will find your playing feels "off." In any event, if you are just trying to fix the notes by nudging them to line up with the beat, you can do that by using one of Sonar's "quantize" algorithms to automate the nudging.
|
jimmypop13
Max Output Level: -90 dBFS
- Total Posts : 25
- Joined: 2011/01/09 20:03:24
- Status: offline
Re:Is this a latency issue?
2011/03/30 16:54:41
(permalink)
Well I don't feel off when I'm playing. I feel like while I'm recording on my midi keyboard, I'm playing dead on with the metronome click and I don't notice a delay from the time I press a key to hearing the sound from the soft synth. I must just be playing ahead then. Doh! I don't have Sonar in front of me at the moment but I'll definitely have to find the quantize algorithm you mentioned. Sounds perfect.
|
siris1977
Max Output Level: -87 dBFS
- Total Posts : 187
- Joined: 2010/12/10 07:07:25
- Location: Alabama Roll Tide
- Status: offline
Re:Is this a latency issue?
2011/03/30 19:48:05
(permalink)
maybe what your doing is starting to press the key on the beat, but the keyboard dont regester a note until you get to the bottom on the key stroke.
Phenom Quad core, 8gb ram, 3.5tb of Fine Music Storage Vault Under Armed Guard w/ UAV support (air-hog chopper), set of MA-15D, Delta 10-10 pci w/interface, m-box 3 pro, projectmix I/O, Metal Pop Filters, Two SKB cases Full of Suck Removal Buttons, Cedar Walls, Stripper Pole (helps with mastering & block priceing) more stuff i'm to lazy to add. ;) P.S. good Memory foam is freakin awesome.
|
brundlefly
Max Output Level: 0 dBFS
- Total Posts : 14250
- Joined: 2007/09/14 14:57:59
- Location: Manitou Spgs, Colorado
- Status: offline
Re:Is this a latency issue?
2011/03/30 22:42:02
(permalink)
Are you using a combined audio/MIDI interface, or audio interface and keyboard connected by USB/MIDI? Whichever the case, you might try the alternate configuration. Some interfaces seem to do odd things with MIDI timestamps that can cause an offset between MIDI and audio. You might try enabling IgnoreMIDIInTimeStamps in TTSSEQ.INI, and see if that thas any effect. If all else fails, you can compensate for the offset by entering the appropriate Timing Offset value in Preferences (don't know the exact path in X1 off the top of my head). Here's an exhaustive thread on the subject from a few years ago (has it really been that long?!): http://forum.cakewalk.com/tm.aspx?&m=1301345&mpage=1
post edited by brundlefly - 2011/03/30 22:43:49
|
jimmypop13
Max Output Level: -90 dBFS
- Total Posts : 25
- Joined: 2011/01/09 20:03:24
- Status: offline
Re:Is this a latency issue?
2011/03/31 01:49:44
(permalink)
I'm using a line6 toneport ux2 usb interface and a novation sl mkII usb midi keyboard so they're both separate and using different usb ports. I'm using the asio line6 driver. I've been told the line6 toneport isn't that great of an interface so maybe it could be causing some issue. I'm going to be using it all day tomorrow so I'll play around with some of your suggestions. Thanks
|
brundlefly
Max Output Level: 0 dBFS
- Total Posts : 14250
- Joined: 2007/09/14 14:57:59
- Location: Manitou Spgs, Colorado
- Status: offline
Re:Is this a latency issue?
2011/03/31 02:37:22
(permalink)
novation sl mkII This will help you figure out what's going on because a keyboard synth can generate virtually simultaneous MIDI and audio output (usually within 1ms) that you can use as a reference for what SONAR records. The first thing you'll want to do is check the audio latency compensation of the Toneport by running the free CEntrance ASIO latency tester (Google it), and comparing what it reports for a round-trip time with what SONAR reports. Then enter the difference in samples (CEntrance RT - SONAR RT) as a Manual Offset in Preferences > Audio > Sync and Caching (not to be confused with "Timing Offset (msec)" mentioned earlier, which should be left at 0 for the time being). Then set up to record simultaneous audio and MIDI from the Novation using Local Control. Record a few isolated MIDI notes along with a drum sound or other synth sound with a sharp attack, and zoom in to see how the recorded audio and MIDI are lining up. Setting the tempo to 125 BPM (2 ticks.ms) or even 625 (10 ticks/ms) will make it easy to see how much error you're getting without changing you timeline display to milliseconds. And do this with the metronome off; we'll worry about that later. We just want to see the relative timing sync between audio and MIDI at this point, without regard to where it falls in the timeline. If corresponding MIDI notes and audio transients are within a couple milliseconds with the MIDI being late (since SONAR does nothing by default to compensate MIDI transmission delay), then everything is probably copacetic with the basic audio and MIDI interface set up. If not, let us know what you're seeing, and we'll go from there.
post edited by brundlefly - 2011/03/31 02:42:38
|
Zo
Max Output Level: -25 dBFS
- Total Posts : 5036
- Joined: 2008/01/25 20:49:55
- Status: offline
Re:Is this a latency issue?
2011/03/31 07:11:49
(permalink)
I noticed a strange feeling also ...i'm using the input quantize and it seems (same setting as sonar 8.5) that it's less smooth than 8.5 .....256 samples Vs 700
For sale (PM me) : transfert ilok includedEventide Ultrachannel make offersSoftube Summit EQIK Neve 1081 , Neve precision Comp/LimEastWest GoshtwriterSoundforge Pro 12
|
jimmypop13
Max Output Level: -90 dBFS
- Total Posts : 25
- Joined: 2011/01/09 20:03:24
- Status: offline
Re:Is this a latency issue?
2011/03/31 15:52:46
(permalink)
I'm a little confused about step 1. Everytime I run CEntrance latency tester, I get a different number of samples. But if I do (1195x17.44)/769, I get 27.1 so does that mean I don't need to mess with the manual offset?
|
jimmypop13
Max Output Level: -90 dBFS
- Total Posts : 25
- Joined: 2011/01/09 20:03:24
- Status: offline
Re:Is this a latency issue?
2011/03/31 16:18:09
(permalink)
Okay here is step two. I wasn't exactly sure here either how to record midi and audio data from my keyboard but I *think* I figured it out. Here is a screen shot. It definitely looks like they aren't sync'd, unless I set it up wrong.
post edited by jimmypop13 - 2011/03/31 17:54:57
|
jimmypop13
Max Output Level: -90 dBFS
- Total Posts : 25
- Joined: 2011/01/09 20:03:24
- Status: offline
Re:Is this a latency issue?
2011/03/31 16:48:41
(permalink)
I noticed here that clicking on the front of the notes in audio, you can see in the piano roll view that the midi started ahead. The first and fourth notes had the biggest chunk of midi data in front of them and the second and third were closer to being in sync
|
jimmypop13
Max Output Level: -90 dBFS
- Total Posts : 25
- Joined: 2011/01/09 20:03:24
- Status: offline
Re:Is this a latency issue?
2011/03/31 17:22:24
(permalink)
I messed with the manual offset but but didn't really notice anything, my midi data in the piano roll view is still ahead of the barline when I play in tempo. I noticed in the other post that it said to unplug your outputs on audio interface and run one cable from the output to the input. I unplugged the outputs and ran a cable from the right input to the right output and still, everytime I hit measure, I get a different sample and ms. It seems to me like that must be a major problem. I can't use the data if it's always changing, right?
post edited by jimmypop13 - 2011/03/31 17:55:54
|
jimmypop13
Max Output Level: -90 dBFS
- Total Posts : 25
- Joined: 2011/01/09 20:03:24
- Status: offline
Re:Is this a latency issue?
2011/03/31 17:52:52
(permalink)
brundlefly, I just tried the suggestion in your first post. I put the manual offset back to 0, and above that I messed with the Timing Offset, right now I'm at 24msec and it seems to be pretty dang close. My midi data is lined up on beat and the audio data seems to be lined up too. Do you think I should still try enabling IgnoreMIDIInTimeStamps in TTSSEQ.INI? And if so, how do I do that?
post edited by jimmypop13 - 2011/03/31 17:54:36
|
brundlefly
Max Output Level: 0 dBFS
- Total Posts : 14250
- Joined: 2007/09/14 14:57:59
- Location: Manitou Spgs, Colorado
- Status: offline
Re:Is this a latency issue?
2011/03/31 18:15:57
(permalink)
I haven't had time to review all your posts, but the thing I was looking for that is definitely a problem is that CEntrance says your Round-trip latency is 769 samples, which is pretty typical for a buffer setting of 256 - maybe just a tad high, indicating there's little bit more "hidden" (unreported driver and USB port) latency than normal. But SONAR says RT is 1195 samples, which makes no sense for a buffer of 256. The confusing thing is that having SONAR over-estimate the latency would tend to make it over-compensate the audio latency, so that it would be early relative to the MIDI, whereas it appears you MIDI is early. But with that big a discrepancy between actual and reported/detected latency, anything is possible. You could even be aligning the wrong MIDI events to audio transients. You might want to try checking just a single hit to be sure which way it's off. I would try to get to the bottom of that RT discrepancy with Line 6/Cakewalk support before doing anything else. You may be able to get some semblance of normal behavior out of the system by adjusting offsets, but you shouldn't have to be entering values that big. If you do want to try adjusting it, though, the first place to start is with a Manual Offset of 769-1195 = -426 (yes, negative 426 to counteract the over-compensation). And then retest Audio and MIDI sync with Timing Offset at 0.
post edited by brundlefly - 2011/03/31 18:17:28
|
brundlefly
Max Output Level: 0 dBFS
- Total Posts : 14250
- Joined: 2007/09/14 14:57:59
- Location: Manitou Spgs, Colorado
- Status: offline
Re:Is this a latency issue?
2011/03/31 18:46:38
(permalink)
Okay. I read a little bit more. Here are a few more thoughts; Yes, when doing the round-trip test with CEntrance, it needs to have an analog audio loopback path from output to input to send the "ping" around and measure the total time (latency). Without that, it shouldn't even be able to report a number. Normally, you'd expect the round-trip latency to be twice the buffer size (same buffer in and out) plus maybe 88 samples (1ms each way) for A/D/A conversion, plus maybe another 20-30 samples of driver/bus latency, depending on the interface. This would give you 512 + 88 + 30 = 630. Thats why I'm surprised your CEntrance screenshot shows 769. But if it's variable, that's big problem in itself. It should be consistent to within a sample, if not exactly the same every time. And the difference between what CEntrance reports, and what SONAR reports should be the same at all buffer settings, allowing you to set the Manual Offset and forget it. Regarding CEentrance reporting "769 samples / 17.44ms". That's just sloppy symbology. It should really be "769 samples = 17.44ms at 44.1kHz" (769 samples / 44100 samples/sec = .01744 sec. = 17.44ms). Looking at your screenshots, it appears that the audio track is a soft synth track with Waveform Preview enabled. That's not what you want to be doing. You want to set up a track to record the analog input(s) of your Toneport, and connect the audio output(s) of your Novation to the interface and record its synth module output at the same time you record the MIDI driving it.
post edited by brundlefly - 2011/03/31 18:49:18
|
bvideo
Max Output Level: -58 dBFS
- Total Posts : 1707
- Joined: 2006/09/02 22:20:02
- Status: offline
Re:Is this a latency issue?
2011/03/31 18:50:34
(permalink)
What brundlefly said!! The toneport driver may have reported wrong information to Sonar. Also, if Centrance is reporting different numbers every time, the driver is probably doing something weird, and you might never be able to get a consistent compensation. (Unless they're only different by a few samples). Bill B
|
jimmypop13
Max Output Level: -90 dBFS
- Total Posts : 25
- Joined: 2011/01/09 20:03:24
- Status: offline
Re:Is this a latency issue?
2011/03/31 18:53:28
(permalink)
Ah crap I figured I was probably setting it up wrong. Even with nothing plugged in to any inputs or outputs of my toneport, CEntrance still gives a random sample and ms number when I hit measure. And no, they are off majorly, like several hundred samples each time and several ms each time. Looks like I need a better quality interface. Is it even worth it to set up an audio and midi track like you mentioned if I'm having these funky driver problems?
post edited by jimmypop13 - 2011/03/31 19:00:04
|
jimmypop13
Max Output Level: -90 dBFS
- Total Posts : 25
- Joined: 2011/01/09 20:03:24
- Status: offline
Re:Is this a latency issue?
2011/03/31 20:51:27
(permalink)
What's a decent interface to replace my toneport since it looks like it's probably the problem? I found a focusrite saffire pro24 new for $223 so I may switch to that.
post edited by jimmypop13 - 2011/03/31 22:31:21
|
SWANG
Max Output Level: -87 dBFS
- Total Posts : 191
- Joined: 2008/08/26 18:07:57
- Status: offline
Re:Is this a latency issue?
2011/11/30 21:05:27
(permalink)
sorry to dig up an old thread, but i had this issue today. came here, did a search and this topic came up. turns out, none of these solutions were necessary for me. what was necessary in my case was to disable the plugins i had placed in the audio fx bin of one of my tracks. i had totally forgotten that i had put them there, and as soon as i disabled them (didn't have to delete them), i was able to playback my midi drums without them triggering ahead of the beat. wanted to add this to the thread in case it helps someone else in the future.
|
jdelgado
Max Output Level: -90 dBFS
- Total Posts : 9
- Joined: 2012/07/14 17:19:00
- Status: offline
Re:Is this a latency issue?
2012/07/14 18:51:56
(permalink)
jimmypop13 I'm using a line6 toneport ux2 usb interface and a novation sl mkII usb midi keyboard so they're both separate and using different usb ports. I'm using the asio line6 driver. I've been told the line6 toneport isn't that great of an interface so maybe it could be causing some issue. I'm going to be using it all day tomorrow so I'll play around with some of your suggestions. Thanks Hi Jimmypo13, I have a similar setup. Am having problems with the soft syths, particularly Session Drummer. It plays out of time with the rest of the midi tracks Are you experiencing same?
|
Blogman
Max Output Level: -81 dBFS
- Total Posts : 481
- Joined: 2011/02/08 02:32:48
- Status: offline
Re:Is this a latency issue?
2012/07/15 00:21:04
(permalink)
I too have run into this and my fix was to go into the Configuration file (Edit, Preferences ((or just P)) Audio, Configuration file... Look for "Enable Device Output Latency Compensation.... Set this to 'False'.... hit apply. that should fix your trouble of Sonar 'over compensating'.
|
bobguitkillerleft
Max Output Level: -72 dBFS
- Total Posts : 944
- Joined: 2011/05/17 17:28:58
- Location: Adelaide Australia
- Status: offline
Re:Is this a latency issue?
2012/07/15 00:31:42
(permalink)
I recently attempted to turn my standard electric guitar into a Bass,via the "pitch shifter" in Amplitube3,and after much messing about[losing the phaser etc]I thought that the result was ok.......until,on playback the Bass parts sounded like a gig I played many many moons ago,where we all got super drunk,as we were the headline act over Rose Tattoo[minus Angry A-lead singer],and the heaviest bikers in Sydney packed the venue,and actually stayed to watch us!!! I seriously thought we would all be killed,but we lived,with a bad enough hangover to make me [finally]realise how poisonous alcohol is. Bob http://soundcloud.com/rks26
https://soundcloud.com/rks26https://en.wikipedia.org/wiki/The_Hitmen Lenovo W540 Factoryrefurb SONAR PLATINUM,Ozone 7 N.I. KA6 Komplete 9 SSD4 Platinum Epi L/H LP Custom Headstock broken twice and fixed.Gibson L/H Les Paul 2010 Wine Red Studio stupid Right Hand Vol.Tone for Left Hand?LH84Ibanez RS135 gen.FloydRose JB Marshall 100w 2203 4x25w Celestion Green backs "You are what you is"-Frank Zappa "But I'm gonna wave my freak flag high"-Jimi Hendrix
|
chuckebaby
Max Output Level: 0 dBFS
- Total Posts : 13146
- Joined: 2011/01/04 14:55:28
- Status: offline
Re:Is this a latency issue?
2012/07/15 01:41:56
(permalink)
bobguitkillerleft I recently attempted to turn my standard electric guitar into a Bass,via the "pitch shifter" in Amplitube3,and after much messing about[losing the phaser etc]I thought that the result was ok.......until,on playback the Bass parts sounded like a gig I played many many moons ago,where we all got super drunk,as we were the headline act over Rose Tattoo[minus Angry A-lead singer],and the heaviest bikers in Sydney packed the venue,and actually stayed to watch us!!! I seriously thought we would all be killed,but we lived,with a bad enough hangover to make me [finally]realise how poisonous alcohol is. Bob http://soundcloud.com/rks26 if i may ask sir...what does this have to do with this thread? this is just random jargin.
Windows 8.1 X64 Sonar Platinum x64 Custom built: Asrock z97 1150 - Intel I7 4790k - 16GB corsair DDR3 1600 - PNY SSD 220GBFocusrite Saffire 18I8 - Mackie Control
|
bobguitkillerleft
Max Output Level: -72 dBFS
- Total Posts : 944
- Joined: 2011/05/17 17:28:58
- Location: Adelaide Australia
- Status: offline
Re:Is this a latency issue?
2012/07/15 01:49:12
(permalink)
So deeply sorry "Chuckee" I thought the thread was about latency in general,but,now you have so succinctly pointed out my experiences have nothing to do with MIDI,or PRV,so sorry......you should be hired as a cakewalk cop,dishing out electric shocks,to peeple like me who talk without adhering exactly to the context!!!! Hi Bob http://soundcloud.com/rks26
https://soundcloud.com/rks26https://en.wikipedia.org/wiki/The_Hitmen Lenovo W540 Factoryrefurb SONAR PLATINUM,Ozone 7 N.I. KA6 Komplete 9 SSD4 Platinum Epi L/H LP Custom Headstock broken twice and fixed.Gibson L/H Les Paul 2010 Wine Red Studio stupid Right Hand Vol.Tone for Left Hand?LH84Ibanez RS135 gen.FloydRose JB Marshall 100w 2203 4x25w Celestion Green backs "You are what you is"-Frank Zappa "But I'm gonna wave my freak flag high"-Jimi Hendrix
|
Freddie H
Max Output Level: -39 dBFS
- Total Posts : 3617
- Joined: 2007/09/21 06:07:40
- Status: offline
Re:Is this a latency issue?
2012/07/15 05:22:42
(permalink)
jimmypop13 Well I don't feel off when I'm playing. I feel like while I'm recording on my midi keyboard, I'm playing dead on with the metronome click and I don't notice a delay from the time I press a key to hearing the sound from the soft synth. I must just be playing ahead then. Doh! I don't have Sonar in front of me at the moment but I'll definitely have to find the quantize algorithm you mentioned. Sounds perfect. Yes your metronome fools you in SONAR because of audio latency. Its a known problem. Here is how to fix it! You need to make a "Metronome BUS" send the output from the "METRONOME/Click"-Preference to that BUS. On the "METRONOME"-BUS send the specific output but to "MASTER BUS" in SONAR. As you can see all MIDI recordings lines up correctly during recording when you follow the CLICK/Metronome.
post edited by Freddie H - 2012/07/15 05:34:10
-Highly developed spirits often encounter resistance from mediocre minds. -It really matters!
|
Freddie H
Max Output Level: -39 dBFS
- Total Posts : 3617
- Joined: 2007/09/21 06:07:40
- Status: offline
Re:Is this a latency issue?
2012/07/15 05:29:23
(permalink)
-Highly developed spirits often encounter resistance from mediocre minds. -It really matters!
|
FractauralMotif
Max Output Level: -90 dBFS
- Total Posts : 6
- Joined: 2012/09/01 14:55:22
- Status: offline
Re:Is this a latency issue?
2013/04/21 16:24:17
(permalink)
go into the Configuration file (Edit, Preferences ((or just P)) Audio, Configuration file... Look for "Enable Device Output Latency Compensation.... Set this to 'False'.... hit apply. that should fix your trouble of Sonar 'over compensating'. Blogman Thank you, thank you!!! I have been getting so frustrated with this MIDI synchronization problem where recorded MIDI notes were always ~20ms early, and was having a hard time finding anything in forums about it. Making this adjustment fixed my problem! I'm using Cakewalk Sonar X1 Essential, with all latest patches.
|
taccess
Max Output Level: -80 dBFS
- Total Posts : 534
- Joined: 2015/01/11 19:14:36
- Status: offline
Re:Is this a latency issue?
2017/06/29 05:53:28
(permalink)
FractauralMotif
go into the Configuration file (Edit, Preferences ((or just P)) Audio, Configuration file... Look for "Enable Device Output Latency Compensation.... Set this to 'False'.... hit apply. that should fix your trouble of Sonar 'over compensating'.
Blogman
Thank you, thank you!!! I have been getting so frustrated with this MIDI synchronization problem where recorded MIDI notes were always ~20ms early, and was having a hard time finding anything in forums about it. Making this adjustment fixed my problem! I'm using Cakewalk Sonar X1 Essential, with all latest patches.
EnableDeviceOutputLatencyCompensation=<0,1> (default = 1) Does anyone know what the values mean , beside Sonar 'over compensating' can someone explain this setting , does it disconnect sonars asio reported latency : Output 0=? ( My guess is False 1=? ( my guess is True ) ( This is the default )
z800 Dual x5690 NvME 256gb 950Pro / Win10 LSI MegaRaid Nvidia 450 GTS 96GB 1366MHZ RME Babyface
|