GithubHelp home page GithubHelp logo

Comments (5)

nejdu avatar nejdu commented on September 7, 2024 1

Thanks! I like the idea of talking to a virtual device, I'll see what I can do. I can definitely agree that the Windows MIDI stack is... lacking. But, the controller does work fine with everything else on the same computer, it's only with the DryWet implementation I'm experiencing this problem. I'll do some more debugging on my end and see if I can find something more to go on!

from drywetmidi.

nejdu avatar nejdu commented on September 7, 2024 1

Sorry for the delay, I’ve had a lot on my plate lately. I will reach some conclusion on this when I return home, I promise I’ll let you know so please don’t close it :-)

from drywetmidi.

melanchall avatar melanchall commented on September 7, 2024

Hi,

Thanks for using the library!

From the description you've provided I can conclude following:

  1. The error is not related with the library. DryWetMIDI just uses appropriate Windows MIDI API to get things work.
  2. Your assumptions about something with USB or Windows itself look reasonable. My additional assumptions are issues in the device driver or maybe Windows MIDI API can silently interrupt MIDI connection for some reason.

Windows MIDI API is pretty poor. We can't even get any notifications if something went wrong. Your code is simple and fine.

If I then try to disconnect and connect again I get a "Device is already in use (IN_OPENRESULT_ALLOCATED)" error

Well, it just means what I've said before:

maybe Windows MIDI API can silently interrupt MIDI connection for some reason

As for your question:

Question: is there any way to turn on more low level debug output to see what's going on here?

My suggestions are:

  1. Try to log the time when last event was received (you can build a simple app that sends an event to virtual MIDI device every second and receive events from your app from that virtual device logging current time).
  2. Then you can look at the Windows Event Viewer for some errors or messages in system logs near the time last event was received.
  3. Also you can search on the Internet for the same error in general or regarding your device.

Thanks,
Max

from drywetmidi.

melanchall avatar melanchall commented on September 7, 2024

Any news? Or the issue can be closed?

from drywetmidi.

nejdu avatar nejdu commented on September 7, 2024

After many days of testing by switching out midi controllers I've reached the conclusion that it's either faulty gear (probably) or faulty drivers (unlikely). Windows certainly isn't helping to debug the problem, but it's not an issue in DryWet since another piece of gear isn't exhibiting any problems when using the same usb cable and port. Also, at one point I had the buggy controller lose connection in another software so that convinced me that I'm on the wrong path; this has nothing to do with DryWet. So that's something at least!

from drywetmidi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.