Midi, linux and Reaper

No, that's not the right library (it's meant for a USB Host shield, you need the Arduino to act as a USB Device). The Arduino Uno does not support MIDI over USB natively, see Control Surface: MIDI over USB for details and alternatives.

"midi-through" is a virtual MIDI port of your operating system, it is not the Arduino.