Refer to QMidi.
Only provides the most basic MIDI file read and write functions.
vcpkg install wolf-midi
find_package(wolf-midi)
target_link_libraries(${PROJECT_NAME} PRIVATE wolf-midi::wolf-midi)
Quick example:
MidiFile f;
f.load(" .. some filename .. ");
f.save(" .. some filename .. ");
You can get the events using f.events()
which returns a std::list<MidiEvent*>*
.