Well I am writing something related and what I found helpfull is source code and working samples of library from kshoji BLE-MIDI-for-Android or any of its newer forks. Still looks like I am able to use it just as Peripheral and Central I need to write myself, so looks like I am going to mix it up by multiple approaches as implementation of central is kind of messy for me because it look like it is connecting automatically to all found devices what I cannot understand reason at all. But that part you where looking for, looks like is working quite well, just by using this lib I was able to get working peripheral bluetooth midi and send midi note on messages to my iPAD to apps like Korg Gadget or AUM from virtual keyboard on android.
https://github.com/kshoji/BLE-MIDI-for-Android