Yeah, Teensy could be a great choice for this.
@Still, here’s a friendly doc on using teensyduino https://www.pjrc.com/teensy/td_midi.html
And here’s a library that can be used to build upon: