Android 6.0+: sin sonido con la nueva API MIDI

Estoy usando elnueva API MIDI para tocar algunas notas MIDI. Sin embargo, no puedo escuchar ningún sonido, ni se lanza ninguna excepción. El código para el mismo es el siguiente:

//initialising the MidiReceiver
private MidiReceiver midiReceiver;
midiReceiver = new MidiReceiver() {
    @Override
    public void onSend(byte[] msg, int offset, 
        int count, long timestamp) throws IOException {

    }
};

/*Then in my loop containing note_on or note_off events*/
byte[] buffer = new byte[32];
int numBytes = 0;
int channel = 2; // MIDI channels 1-16 are encoded as 0-15.               
// NOTE_STATUS is either 0x90 or 0x80
buffer[numBytes++] = (byte)(NOTE_STATUS + (channel - 1)); 
buffer[numBytes++] = (byte)noteValue; // the required MIDI pitch
buffer[numBytes++] = (byte)127; // max velocity
int offset = 0;
midiReceiver.send(buffer, offset, numBytes);

¿Qué estoy haciendo mal aquí? Creo que debe ser porque elonSend El método está vacío. ¿Cómo lo uso para que mi aplicación reproduzca las notas dentro del dispositivo Android?

Respuestas a la pregunta(1)

Su respuesta a la pregunta