Andruino Andruino - 1 month ago 14
Android Question

Android. MIDI. Playing first N notes

I'm writing an app, that plays MIDI files. Is there any chance to play only N first notes (say 5) of MIDI file?

Thanks in advance!

Code example snippets would be great!

Answer

Of course it's possible. It'd be a lot easier to find a library to do it though, try something like this:

https://code.google.com/p/android-midi-lib/

If that doesn't do it, google midi file manipulation library java or something like that, you'll find something.

Edit: Take a look at this, it's newer and more relevant Android 6.0 (Marshmallow): How to play midi notes?

Comments