If you want to see how the MIDI notes are reproduced, check the following topic: Inject notes to a synthesiser