celtera / libremidi

A modern C++ MIDI 1 / MIDI 2 real-time & file I/O library. Supports Windows, macOS, Linux and WebMIDI.
Other
463 stars 51 forks source link

Change the API so that midi in and midi out correspond to a port from the configuration #99

Open jcelerier opened 9 months ago

jcelerier commented 9 months ago

It doesn't really make sense to have open_port / open_virtual_port when one can only call these functions in the beginning. It'd be much simpler to just pass information about the port we want to open to the configuration in the constructor.