I just tried to add MIDI support, but I cannot test it. See the dev branch of the rnbo.example.bela repo and see if that works. Currently it's reading MIDI from the host computer over USB. If you want to change that to a USB MIDI device connected to Bela, you'll have to change midi.readFrom("hw:0,0,0") to something like midi.readFrom("hw:1,0,0").