I have an Akai APC mini controller that I use with Sonic Pi and over the weekend I spent some time polishing the utility functions I use, in order to share them, in case someone finds them useful. I guess it would be possible to make it more generic to support more controllers, but since it’s the only device I have access to, and all I know about MIDI is what I learnt to write this, I thought I’d better start with something completely coupled to this model, and then maybe extend it in the future.
Usual disclaimer, It Works On My Computer , etc. Any feedback is welcome, and I hope it helps someone. Also, thanks to everyone that ever wrote anything about the MIDI topic on this website, I have probably read your post over the last weeks and it sure helped me
 And as you can read in the docs, not perfectly