I am new to Android development, and would like to know if it is possible to send a midi file data out of Bluetooth?
I am using the following to load and start a midi file..
MediaPlayer mediaPlayer;
String music = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MUSIC).getAbsolutePath();
mediaPlayer = MediaPlayer.create(MainActivity.this, Uri.parse(music + "/test.mid"));
mediaPlayer.start();
After requesting permissions etc, this will start playing the midi file on my device.
My next step it to send this out via Bluetooth, i.e. I want just the midi going to blue tooth and NOT any other audio that may be playing on my device (in another application).
How can this be done (if it can be done)?
Edit 1
Just a bit more info that may have not been clear.
What I am after is sending midi data, NOT midi audio. Ie I want to load a midi file, and then send via Bluetooth to a Bluetooth midi cable like this, which is plugged into a keyboard, and have the midi file play the keyboard.