Question on MIDI and WASAPI [Solved]

Author
Anderton
Max Output Level: 0 dBFS
  • Total Posts : 14070
  • Joined: 2003/11/06 14:02:03
  • Status: offline
2018/04/21 20:35:40 (permalink)

Question on MIDI and WASAPI [Solved]

I've been using Sonar with WASAPI so a Windows screen capture program could capture the audio without the usual nasty Windows latency, and I could run Vegas at the same time. So far no problems, but last night Sonar simply refused to recognize my MIDI keyboard controller. Other programs could when using ASIO. After tearing my hair out for a while, I switched from MME MIDI to UWP MIDI, and now it seems to work. But I'd never had it on UWP before, so I'm not sure if that's the issue. 
 
Does anyone have a definitive protocol for using MIDI with WASAPI low-latency mode?
post edited by Anderton - 2018/04/25 01:13:41

The first 3 books in "The Musician's Guide to Home Recording" series are available from Hal Leonard and http://www.reverb.com. Listen to my music on http://www.YouTube.com/thecraiganderton, and visit http://www.craiganderton.com. Thanks!
#1

17 Replies Related Threads

    Noel Borthwick [Cakewalk]
    Cakewalk Staff
    • Total Posts : 6475
    • Joined: 2003/11/03 17:22:50
    • Location: Boston, MA, USA
    • Status: offline
    Re: Question on MIDI and WASAPI 2018/04/21 20:41:07 (permalink)
    Thats weird. WASAPI doesnt have anything to do with MME MIDI so it shouldn't impact anything. Did you try switching SONAR to ASIO and did it make a difference?
    I have seen some drivers get broken internally in one driver mode but work in another a long time ago. A reboot would fix it when that happened.

    Noel Borthwick
    Senior Manager Audio Core, BandLab
    My Blog, Twitter, BandLab Profile
    #2
    Phoen1xPJ
    Max Output Level: -85 dBFS
    • Total Posts : 255
    • Joined: 2016/11/03 18:14:22
    • Location: Atlanta
    • Status: offline
    Re: Question on MIDI and WASAPI 2018/04/21 21:01:12 (permalink)
    More WASAPI woes...

    Yours With a Song,
    Phoen1x
     
    Wayfarer Station Micro Studio including:
    *new* Cakewalk by BandLab
    Intel Core i5 quad core 3.10 GHz
    ASUStek P8B75-M mobo
    32 GB Mushkin Blackline RAM
    NVidia GeForce 210 1 GB vid card
    (2) 1 TB HD & (1) 500 GB HD
    *new* Win 10 Pro 64 bit
    Echo Layla 24 PCI audio interface (faster than USB!)
    Tascam US-224 control surface (with jog/shuttle wheel, impossible to find elsewhere)
    MIDIMan 2X2 MIDI interface
    ...not bleeding edge but vintage rockin' 
     
    http://verticalalignment.rocks/
     
     
    #3
    Anderton
    Max Output Level: 0 dBFS
    • Total Posts : 14070
    • Joined: 2003/11/06 14:02:03
    • Status: offline
    Re: Question on MIDI and WASAPI 2018/04/21 22:04:48 (permalink)
    Noel Borthwick [Cakewalk]
    Thats weird. WASAPI doesnt have anything to do with MME MIDI so it shouldn't impact anything. Did you try switching SONAR to ASIO and did it make a difference?

     
    Thanks Noel! Yes, it worked fine with ASIO. The problem is I can't use ASIO because the screen capture will grab audio too only using native Windows audio. What's weird is that everything worked fine when I saved the project and then shut down. When I opened the next day...problems. 
     
    Windows did an update when I turned the computer on. I thought that might be the problem, so I reinstalled Sonar. I haven't installed CbB on my main computer yet, only the Studio B one, so I'll try that.
     
    I have seen some drivers get broken internally in one driver mode but work in another a long time ago. A reboot would fix it when that happened.

     
    I rebooted several times to no avail. I'll see what happens tonight and report back. Maybe it was a combination of Windows update and something else.
     

    The first 3 books in "The Musician's Guide to Home Recording" series are available from Hal Leonard and http://www.reverb.com. Listen to my music on http://www.YouTube.com/thecraiganderton, and visit http://www.craiganderton.com. Thanks!
    #4
    Cactus Music
    Max Output Level: 0 dBFS
    • Total Posts : 8424
    • Joined: 2004/02/09 21:34:04
    • Status: offline
    Re: Question on MIDI and WASAPI 2018/04/21 22:09:42 (permalink)
    I would try asio4all. Works better for me when I'm sans audio interface and has better RTL. 
    It got a bad rap in the past but like all software is always being updated and bugs fixed. 
    Things like it taking over your real ASIO driver don't happen for me. Might still be true for some ASIO drivers but not for Tascam or Focusrite. 
    I was using asio4all for months and I brought that laptop home and installed my Focusrite driver and I can use either one. If I boot Sonar with the interface on Sonar uses that driver. If the interface is off it uses the asio4all driver. 
    I later out of curiosity installed my Tascam driver and that also caused no issues. 

    Johnny V  
    Cakelab  
    Focusrite 6i61st - Tascam us1641. 
    3 Desktops and 3 Laptops W7 and W10
     http://www.cactusmusic.ca/
     
     
    #5
    chris.r
    Max Output Level: -86 dBFS
    • Total Posts : 206
    • Joined: 2014/12/20 20:18:15
    • Status: offline
    Re: Question on MIDI and WASAPI 2018/04/21 23:29:02 (permalink)
    Perhaps you know it already but in case you don't, there's a great software Voicemeeter from vb-audio.com, check it out it might be helpful in your case. I remember using it in winXP and it was doing wonders.
    #6
    Anderton
    Max Output Level: 0 dBFS
    • Total Posts : 14070
    • Joined: 2003/11/06 14:02:03
    • Status: offline
    Re: Question on MIDI and WASAPI 2018/04/22 18:02:21 (permalink)
    chris.r
    Perhaps you know it already but in case you don't, there's a great software Voicemeeter from vb-audio.com, check it out it might be helpful in your case. I remember using it in winXP and it was doing wonders.

     
    Thanks for the tip, I'm not sure how useful it would be without recording the video at the same time so the sound and video are synched. But I can think of other uses.
     
    To follow up, MIDI worked just fine last night without having to do anything other than turn the system on. I'm going to chalk it up to Windows update settling in, because that was the only difference between turning the computer off an turning it back on again
     
    Thanks again Noel. It still may have something to do with MME vs UWP MIDI but all I know is that it's working, and that's all that matters!

    The first 3 books in "The Musician's Guide to Home Recording" series are available from Hal Leonard and http://www.reverb.com. Listen to my music on http://www.YouTube.com/thecraiganderton, and visit http://www.craiganderton.com. Thanks!
    #7
    Noel Borthwick [Cakewalk]
    Cakewalk Staff
    • Total Posts : 6475
    • Joined: 2003/11/03 17:22:50
    • Location: Boston, MA, USA
    • Status: offline
    Re: Question on MIDI and WASAPI 2018/04/22 18:48:59 (permalink)
    I've seen MME go belly up on occasion so the reboot fixing it seems "logical"

    Noel Borthwick
    Senior Manager Audio Core, BandLab
    My Blog, Twitter, BandLab Profile
    #8
    Anderton
    Max Output Level: 0 dBFS
    • Total Posts : 14070
    • Joined: 2003/11/06 14:02:03
    • Status: offline
    Re: Question on MIDI and WASAPI 2018/04/22 21:07:44 (permalink)
    Noel Borthwick [Cakewalk]
    I've seen MME go belly up on occasion so the reboot fixing it seems "logical"

     
    Only thing is I rebooted multiple times when it stopped working. Then again by using UWP in the Playback and Recording section of the MIDI preferences, maybe that bypassed any tendency for MME to be problematic.

    The first 3 books in "The Musician's Guide to Home Recording" series are available from Hal Leonard and http://www.reverb.com. Listen to my music on http://www.YouTube.com/thecraiganderton, and visit http://www.craiganderton.com. Thanks!
    #9
    Chandler
    Max Output Level: -81 dBFS
    • Total Posts : 477
    • Joined: 2012/11/02 08:56:21
    • Status: offline
    Re: Question on MIDI and WASAPI 2018/04/23 02:45:39 (permalink)
    I also record videos using Sonar and I was using Voxengo's recorder to send audio to another audio driver, so it could be captured. I think an internal Sonar solution would be a great addition. Either a plugin or something on the master that let you split the output and have part of it go to another audio driver. If it were easier to make videos I think more people would use Cakewalk, especially now that its free. 

    My soundcloud page Chandlerhimself
    My Youtube page
    #10
    Noel Borthwick [Cakewalk]
    Cakewalk Staff
    • Total Posts : 6475
    • Joined: 2003/11/03 17:22:50
    • Location: Boston, MA, USA
    • Status: offline
    Re: Question on MIDI and WASAPI 2018/04/23 16:20:41 (permalink)
    That solution is to use WASAPI shared mode :)

    Noel Borthwick
    Senior Manager Audio Core, BandLab
    My Blog, Twitter, BandLab Profile
    #11
    Anderton
    Max Output Level: 0 dBFS
    • Total Posts : 14070
    • Joined: 2003/11/06 14:02:03
    • Status: offline
    Re: Question on MIDI and WASAPI 2018/04/24 06:59:44 (permalink)
    Hey Noel - just to follow up, here's some more data for you. If I open any SONAR project with WASAPI Shared and the MIDI Playback and Recording driver mode set to MME, the MIDI keyboard isn't recognized. If I change the MIDI driver mode to UWP, everything works fine. Maybe it's system-specific?
     
    I haven't tried this with WASAPI Exclusive or with CbB yet. (I'll be installing CbB soon on my main music computer, I just wanted to make sure I had all the Platinum stuff on the computer before doing so. I'll test this on my studio B computer that has CbB installed to see if it happens.)

    The first 3 books in "The Musician's Guide to Home Recording" series are available from Hal Leonard and http://www.reverb.com. Listen to my music on http://www.YouTube.com/thecraiganderton, and visit http://www.craiganderton.com. Thanks!
    #12
    Anderton
    Max Output Level: 0 dBFS
    • Total Posts : 14070
    • Joined: 2003/11/06 14:02:03
    • Status: offline
    Re: Question on MIDI and WASAPI 2018/04/25 01:15:47 (permalink)
    "Solved" in the sense that is must be system-specific, because on a more recent computer, both MME and UWP work with WASAPI shared using either Sonar or CbB. However the issue remains repeatable on the older machine. I blame Windows 

    The first 3 books in "The Musician's Guide to Home Recording" series are available from Hal Leonard and http://www.reverb.com. Listen to my music on http://www.YouTube.com/thecraiganderton, and visit http://www.craiganderton.com. Thanks!
    #13
    Noel Borthwick [Cakewalk]
    Cakewalk Staff
    • Total Posts : 6475
    • Joined: 2003/11/03 17:22:50
    • Location: Boston, MA, USA
    • Status: offline
    Re: Question on MIDI and WASAPI 2018/04/25 23:45:32 (permalink)
    Anderton
    Hey Noel - just to follow up, here's some more data for you. If I open any SONAR project with WASAPI Shared and the MIDI Playback and Recording driver mode set to MME, the MIDI keyboard isn't recognized. If I change the MIDI driver mode to UWP, everything works fine. Maybe it's system-specific?
     
    I haven't tried this with WASAPI Exclusive or with CbB yet. (I'll be installing CbB soon on my main music computer, I just wanted to make sure I had all the Platinum stuff on the computer before doing so. I'll test this on my studio B computer that has CbB installed to see if it happens.)




    if I understand you are plugging in a USB MIDI keyboard in MME mode and somehow WASAPI shared mode affects the MIDI device showing up? Thats really strange since WASAPI deals with audio and not MIDI. 
    I'll try and follow up with Microsoft in case they have any clues. 

    Noel Borthwick
    Senior Manager Audio Core, BandLab
    My Blog, Twitter, BandLab Profile
    #14
    Anderton
    Max Output Level: 0 dBFS
    • Total Posts : 14070
    • Joined: 2003/11/06 14:02:03
    • Status: offline
    Re: Question on MIDI and WASAPI 2018/04/26 03:59:48 (permalink)
    Thanks Noel. Sorry to bother you about this. MIDI does work with UWP when WASAPI shared is selected. But again, unless someone else can reproduce this, I'll have to assume it's system-specific so probably not worth spending your time on it...you have bigger fish to fry right now 

    The first 3 books in "The Musician's Guide to Home Recording" series are available from Hal Leonard and http://www.reverb.com. Listen to my music on http://www.YouTube.com/thecraiganderton, and visit http://www.craiganderton.com. Thanks!
    #15
    Grem
    Max Output Level: -19.5 dBFS
    • Total Posts : 5562
    • Joined: 2005/06/28 09:26:32
    • Location: Baton Rouge Area
    • Status: offline
    Re: Question on MIDI and WASAPI 2018/04/26 04:37:53 (permalink)
    Not sure this is related, but I have an Alesis Q49 that I have been using for a few years now. Just recently Windows wouldn't recognize it, so I couldn't use it in any DAW I have. Google searches didn't turn up much of anything either. So I put it down to Windows updates as that was the only thing that has really changed on my music machine.
     
    After reading something someone had wrote about another problem with a USB device and Windows updates, it was suggested to try another USB port. I did that and now I have the Q49 back working. Using ASIO (RME 400 Fireface) and UPW.
     
    HTH 

    Grem

    Michael
     
    Music PC
    i7 2600K; 64gb Ram; 3 256gb SSD, System, Samples, Audio; 1TB & 2TB Project Storage; 2TB system BkUp; RME FireFace 400; Win 10 Pro 64; CWbBL 64, 
    Home PC
    AMD FX 6300; 8gb Ram; 256 SSD sys; 2TB audio/samples; Realtek WASAPI; Win 10 Home 64; CWbBL 64 
    Surface Pro 3
    Win 10  i7 8gb RAM; CWbBL 64
    #16
    Larry Jones
    Max Output Level: -74 dBFS
    • Total Posts : 834
    • Joined: 2007/10/11 02:45:33
    • Location: Southern California
    • Status: offline
    Re: Question on MIDI and WASAPI 2018/04/26 05:12:26 (permalink)
    Grem
    Not sure this is related, but I have an Alesis Q49 that I have been using for a few years now. Just recently Windows wouldn't recognize it, so I couldn't use it in any DAW I have. Google searches didn't turn up much of anything either. So I put it down to Windows updates as that was the only thing that has really changed on my music machine.
     
    After reading something someone had wrote about another problem with a USB device and Windows updates, it was suggested to try another USB port. I did that and now I have the Q49 back working. Using ASIO (RME 400 Fireface) and UPW.
     
    HTH 




    I remember a discussion on the forum a year or so ago about resetting USB ports. Windows allows a limited number of devices to be plugged in to any given port. I don't know what the number is, but if, for example, it's 10, the 11th USB device you plug in to that port won't be recognized. I found this info here. Maybe it will help:
    Scan For Hardware Changes Using Device Manager
    1. Right click Start then left click Run
    2. Type devmgmt.msc and click OK, which will open Device Manager
    3. Right click on the name of your computer, and then left click on scan for hardware changes.
    4. Wait for the scan to complete and then check your USB device to see if it works.
    Disable and Re-enable the USB Controller
    1. Right click Start then left click Run
    2. Type devmgmt.msc and click OK, which will open Device Manager
    3. Locate Universal Serial Bus Controllers in the list
    4. Click the arrow next to the little USB cable so that it points down instead of to the right
    5. Right-click on the first USB controller in the list and select ​uninstall.
    6. Repeat step 5 for each USB controller you find.
    7. Turn your computer off and then back on again.
    8. Windows will automatically reinstall the USB controllers, so check to see if your device works.

    SONAR Platinum 2017.10 • CbB  Win10 • i7/2600 • 16GB RAM • Focusrite Scarlett 6i6 • NVIDIA GeForce 8400GS
    #17
    Grem
    Max Output Level: -19.5 dBFS
    • Total Posts : 5562
    • Joined: 2005/06/28 09:26:32
    • Location: Baton Rouge Area
    • Status: offline
    Re: Question on MIDI and WASAPI 2018/04/27 15:00:08 (permalink)
    I found those same instructions Larry when I was trouble shooting my Q49 problem!! 
     
    Great minds think alike!!

    Grem

    Michael
     
    Music PC
    i7 2600K; 64gb Ram; 3 256gb SSD, System, Samples, Audio; 1TB & 2TB Project Storage; 2TB system BkUp; RME FireFace 400; Win 10 Pro 64; CWbBL 64, 
    Home PC
    AMD FX 6300; 8gb Ram; 256 SSD sys; 2TB audio/samples; Realtek WASAPI; Win 10 Home 64; CWbBL 64 
    Surface Pro 3
    Win 10  i7 8gb RAM; CWbBL 64
    #18
    Jump to:
    © 2024 APG vNext Commercial Version 5.1