Android Question Looking for midi ble examples and library

acorrias

Member
Licensed User
Longtime User
Hi all,
I wish to develop an android app that could interact with midi devices with Ble midi.
My idea is to edit and record sequences of midi chords and send them via midi BLE to a midi devices (for example to an esp32 board connected via midi cable to a midi keyboard, to a midi keyboard with a midi ble adapter (Widi master) or to another smartphone that acts as a player). So the phone is used to drive the sound generator. An option would be to read from the keyboard the timing of the clock to send chords according to the rhythm settings. That is, my keyboard plays a rhythm and avery beat my smartphone send a chord.

Please. could you suggest some library o sample code?
thanks ins advance
Alex
 

acorrias

Member
Licensed User
Longtime User
Thanks.
I will give a look to study it in deep. But I think that it would be very hard.
I wish a full library, but I should have to learn about gATT, services & characteristics. and parse strings coming from BLE device.

My problem is that I have to send notes (as chords to the midi keyboard) - that is, for writing to the device - and also get the clock message (ad beat for minute) to change chords - that is, for reading from the device. The idea was to edit chord sequences with smartphone (ad tabs chords for guitar). The idea was to edit it with b4a in order to use modern GUI to edit and save songs.

But I don't know how to develop a callback (I saw some java code about midi ble).

Please Erel, could you suggest how to start using BLE 2.

I have another question. I tried the demo source and realized that my app connects to a ble device ad random. that is 2 times it connected to my ble midi device (WIDI MASTER) and the 3rd time to a fitband of my neighbor. The 4th time to another ble device and the 5th again with my ble midi device. I realized that to connect to my midi ble device I have to disconnect it from android os. So, is there a way to select visibles ble devices?

thanks in advance
lex
 
Upvote 0
Top