What is causing the latency?

Author
eduard87
Max Output Level: -90 dBFS
  • Total Posts : 18
  • Joined: 2015/03/15 09:29:08
  • Location: Northampton, England
  • Status: offline
2015/12/08 15:57:17 (permalink)

What is causing the latency?

Hi everyone,
 
I'm after some advice -
 
Recently I did a bit of a refresh, bought a new computer and installed the latest Sonar.
 
I have kept my same Midi Keyboard - an old Edirol PCR 300
I have also got the same External Soundcard - a trusty E-MU 0404.
 
Previously both of these have worked fine and latency hasn't been a problem unless at the later stages of larger projects.
Now however, I am finding that either one or both of them is not coping well with Midi and I am experiencing latency from the keyboard even when it is being played on it's own.
 
When recording audio, such as guitar and vox I don't have an issue. My problem is purely with midi.
 
So, my question is, whats causing the latency - is it m my keyboard, my 0404, or something else that I haven't considered?
 
Thanks everyone in advance.
 
Ed. (formerly greekmac7 - I can't seem to access that account anymore)
 
 
#1

10 Replies Related Threads

    tlw
    Max Output Level: -49.5 dBFS
    • Total Posts : 2567
    • Joined: 2008/10/11 22:06:32
    • Location: West Midlands, UK
    • Status: offline
    Re: What is causing the latency? 2015/12/08 16:32:42 (permalink)
    Check Sonar's advanced MIDI preferences.

    There's a setting in there for the size of the MIDI buffer - how far ahead Sonar looks when processing MIDI tracks. By default it's 250ms. Try increasing it to 500 or 750 and see if that helps.

    Your particular problem may not be MIDI buffer related, but a wide variety of MIDI issues go away if that buffer is enlarged. For some reason even powerful PCs sometimes need the MIDI buffer increasing, while other less powerful one's seem OK with the default. Why this is, who knows?

    Sonar Platinum 64bit, Windows 8.1 Pro 64bit, I7 3770K Ivybridge, 16GB Ram, Gigabyte Z77-D3H m/board,
    ATI 7750 graphics+ 1GB RAM, 2xIntel 520 series 220GB SSDs, 1 TB Samsung F3 + 1 TB WD HDDs, Seasonic fanless 460W psu, RME Fireface UFX, Focusrite Octopre.
    Assorted real synths, guitars, mandolins, diatonic accordions, percussion, fx and other stuff.
    #2
    eduard87
    Max Output Level: -90 dBFS
    • Total Posts : 18
    • Joined: 2015/03/15 09:29:08
    • Location: Northampton, England
    • Status: offline
    Re: What is causing the latency? 2015/12/08 17:18:56 (permalink)
    Thanks tlw,
     
    I have looked into this and unfortunately the only way to remove the latency is by increasing the buffer to a level that means no other effects can be used - Even with just a two track project.
     
     
    #3
    2:43AM
    Max Output Level: -68 dBFS
    • Total Posts : 1147
    • Joined: 2013/06/24 07:59:49
    • Location: PHX
    • Status: offline
    Re: What is causing the latency? 2015/12/12 02:23:12 (permalink)
    eduard87So, my question is, whats causing the latency - is it m my keyboard, my 0404, or something else that I haven't considered?



    Probably the E-MU 0404.  Several Amazon reviews report nasty latencies and/or bad drivers.
     
    Other things to consider, based on my experience, is over-investigate to the point of ad nauseam your motherboard and/or video card.  I have found that nVidia cards don't play nice with anything except games.  Also, certain motherboards are horrible.  I had to ditch a Gigabit mobo for an Asus because it created horrible latencies and crackling audio.  That was before I upgraded to an i7 machine and now I have an MSI board (but still have the stupid nVidia video card).
     
    Don't want to mess with any of that?  Then I would check out modern audio interfaces from reputable companies.  Check out Focusrite.
    #4
    eduard87
    Max Output Level: -90 dBFS
    • Total Posts : 18
    • Joined: 2015/03/15 09:29:08
    • Location: Northampton, England
    • Status: offline
    Re: What is causing the latency? 2015/12/12 07:14:41 (permalink)
    Thanks - I'll look into this. I just find it strange that this setup used to work absolutely fine for me for so many years.
    #5
    JonD
    Max Output Level: -39 dBFS
    • Total Posts : 3617
    • Joined: 2003/12/09 11:09:10
    • Location: East of Santa Monica
    • Status: offline
    Re: What is causing the latency? 2015/12/12 10:03:00 (permalink)
    If you bought a new computer, then it came with Windows 10, correct?  At the very least, you will need the latest drivers for the  0404.   It seems some people have achieved some success with the 0404 and Win10:
     
    https://www.gearslutz.com/board/music-computers/1028842-e-mu-1616-windows-10-compatibility.html
    post edited by JonD - 2015/12/12 11:30:56

    SonarPlat/CWbBL, Win 10 Pro, i7 2600K, Asus P8Z68 Deluxe, 16GB DDR3, Radeon HD5450, TC Electronic Impact Twin, Kawai MP11 Piano, Event ALP Monitors, Beyerdynamic DT770 Pro, Too Many Plugins, My lucky hat.
    #6
    Bonzos Ghost
    Max Output Level: -68 dBFS
    • Total Posts : 1112
    • Joined: 2005/03/31 15:46:09
    • Location: Canada - Left Coast
    • Status: offline
    Re: What is causing the latency? 2015/12/17 16:01:14 (permalink)
    Certain fx plug-ins can produce midi latency. I've run into that a few times.
    #7
    robert_e_bone
    Moderator
    • Total Posts : 8968
    • Joined: 2007/12/26 22:09:28
    • Location: Palatine, IL
    • Status: offline
    Re: What is causing the latency? 2015/12/17 22:00:54 (permalink)
    IF you happen to have WiFi - that is a VERY common contributor to DPC Latency spikes, which can really cause audio streaming performance problems.  Laptop owners who have Sonar often eliminate this issue by turning off their WiFi adapter (sometimes a switch or function key), or they will go into Windows Device Manager and disable the WiFi adapter there, JUST prior to launching their Sonar session.
     
    Then, when done with Sonar, they will turn on or enable the WiFi again, and all is well.
     
    If the above does not apply, do these issues go away if you hit the letter 'E' on your computer keyboard?  (This is a hot key that will cause all effects to be bypassed).  IF the issues go away at that point, then one or more of your loaded effects is likely not meant to be used during recording, but is more meant for the mixing/mastering end of things.
     
    If the above doesn't work - check your driver mode, and likely you will want to be using ASIO, but this is not always true - some folks have reported better performance/sound using WDM instead, but it seems that number of folks is fairly small.  (I have not seen very many folks indicate this over quite a few years).  Also make sure even if you are using ASIO that it is not perhaps picking up the ASIO drivers from something like ASIO4ALL.  IF you have ASIO4ALL installed on your computer - I recommend you take it out back and flog it to within an inch of its life, since you have the ASIO drivers for your actual audio interface to use instead.  Truly, IF ASIO4ALL is installed, I DO suggest you actually do an uninstall of it and make sure it is gone.
     
    I hope something in the above is of help - please review and respond when you get a chance.  The earlier comment about the Prepare Using nnn Buffers suggestion is also a good one, AND it would help us all out to better help you if you modified your Forum Member Profile Signature to add in your computer specs, like you see at the bottom of my posts or others in the forum.  When you DO add that info - make sure to check the box that tells the forum software to always attach your signature to your posts, or it still won't display.
     
    THANKS, 
     
    Bob Bone
     

    Wisdom is a giant accumulation of "DOH!"
     
    Sonar: Platinum (x64), X3 (x64) 
    Audio Interfaces: AudioBox 1818VSL, Steinberg UR-22
    Computers: 1) i7-2600 k, 32 GB RAM, Windows 8.1 Pro x64 & 2) AMD A-10 7850 32 GB RAM Windows 10 Pro x64
    Soft Synths: NI Komplete 8 Ultimate, Arturia V Collection, many others
    MIDI Controllers: M-Audio Axiom Pro 61, Keystation 88es
    Settings: 24-Bit, Sample Rate 48k, ASIO Buffer Size 128, Total Round Trip Latency 9.7 ms  
    #8
    Cactus Music
    Max Output Level: 0 dBFS
    • Total Posts : 8424
    • Joined: 2004/02/09 21:34:04
    • Status: offline
    Re: What is causing the latency? 2015/12/18 10:19:13 (permalink)
    MIDI latency which you hear when you insert any soft synth and attempt to play it directly from your keyboard. This is different from audio round trip latency. 
    This type of latency is because you need to turn on input echo to hear the soft synth.
    So anything that effects the playback will cause latency. 
    In 98% of cases I've had this happen it's been because I have a certain effects inserted somewhere and bypassing that effect , or all of them, will solve the issue. 
     
    Midi drivers are seperate from your sound cards audio drivers. 
    It is possible that you have an issue with this but I doubt it. This is why modern USB keyboards have become popular as they come with their own midi connection and drivers and they seem to me to respond fatser. 
     If you have a stand alone synth try that to test your midi input responce. 
     

    Johnny V  
    Cakelab  
    Focusrite 6i61st - Tascam us1641. 
    3 Desktops and 3 Laptops W7 and W10
     http://www.cactusmusic.ca/
     
     
    #9
    JonD
    Max Output Level: -39 dBFS
    • Total Posts : 3617
    • Joined: 2003/12/09 11:09:10
    • Location: East of Santa Monica
    • Status: offline
    Re: What is causing the latency? 2015/12/18 10:32:26 (permalink)
    OP made it clear he recorded fine previously.  It's only after getting his new PC (in connection with his older sound card) that latency is suddenly an issue. 
     
    Win 10 and 0404 compatibility -- that's the basic issue he needs to address.  That's why I provided a link to a post from another 0404 user who got that combo to work (presumably with acceptable latencies).  
    post edited by JonD - 2015/12/18 10:47:55

    SonarPlat/CWbBL, Win 10 Pro, i7 2600K, Asus P8Z68 Deluxe, 16GB DDR3, Radeon HD5450, TC Electronic Impact Twin, Kawai MP11 Piano, Event ALP Monitors, Beyerdynamic DT770 Pro, Too Many Plugins, My lucky hat.
    #10
    Jim Roseberry
    Max Output Level: 0 dBFS
    • Total Posts : 9871
    • Joined: 2004/03/23 11:34:51
    • Location: Ohio
    • Status: offline
    Re: What is causing the latency? 2015/12/19 11:18:16 (permalink)
    Latency has but two sources:
    • Your audio interface
    • Latent plugins
    Your audio interface will ultimately determine the lowest latency you'll be able to achieve (your machine has to be able to keep up with the load).
     
    With automatic plugin-delay-compensation, when you insert a latent plugins *anywhere* in a project, ALL other audio is delayed by that amount (to maintain sample-accurate sync).
    "Mastering" or "Convolution" type plugins often use a larger processing buffer... which adds latency.
     
    When tracking, avoid using latent plugins... or you can temporarily disable automatic PDC.  (Make sure to re-enable automatic PDC once finished)

    Best Regards,

    Jim Roseberry
    jim@studiocat.com
    www.studiocat.com
    #11
    Jump to:
    © 2024 APG vNext Commercial Version 5.1