SpotlightKid / python-rtmidi

Python bindings for the cross-platform MIDI I/O library RtMidi
https://spotlightkid.github.io/python-rtmidi/
Other
356 stars 65 forks source link

Virtual ports on Microsoft Windows using pytemidi #105

Closed rdoursenaud closed 2 years ago

rdoursenaud commented 2 years ago

rtmidi does not support virtual ports with Microsoft Windows.

I’m pretty confident we could achieve this feature leveraging pytemidi which in turn uses the excellent VirtualMIDI from Tobias Erichsen which is bundled into the popular loopMIDI and rtpMIDI from the same author.

Would you be willing to accept a pull request for such a feature?

SpotlightKid commented 2 years ago

Hello, thanks for your suggestion, but IMO this is out of scope for python-rtmidi. At its core, python-rtmidi is just a binding for the RtMidi C++ library, with only minor additions and enhancements.

The right place to add support for VirtualMIDI would thus be either RtMidi (but development of RtMidi is slow, so that is probably difficult) or maybe via adding pytemidi as another backend to the Python package mido.

rdoursenaud commented 2 years ago

Thanks for your reply, I also felt it was a bit out of scope hence my question.

I’ll cook something in my corner for my own use case then since mido is out of scope for me right now.

For the record, if anyone stumbles upon this issue, know that RtMidi can’t integrate VirtualMidi because of its license. See: https://github.com/thestk/rtmidi/issues/205