Simple Windows C# WPF-Application testing the 'DryWetMidi' library to record notes from an USB Midi-device and store the recorded notes in a Midi-file on the PC. In my setting the notes were received from a Midi-Keyboard via a Teensy 4.1 using the code of
https://github.com/RoSchmi/Teensy/tree/master/Proj/Teensy41_Transfer_MIDI_To_UsbMIDI
A private version of this example for debugging the DryWetMidi library is in my project: RoSchmiDryWetMidiUtility