I’m trying to make an app that can play different midi files at the same time. The files would not be streaming and I would like to include them in the apk.
A maximum of 12 would be played at the same time… Mp3 or a combination of both would also be a suitable substitute but for now midi would be ideal.
Is this at all possible? Thanks in advance to the stack-overflow geniuses! 🙂
-EltMrx
One easy way to play a single sound is to use
MediaPlayer. Put your sound files in the /res/raw folder, then call the below method usingRconstants, e.g.playSound(R.raw.sound_file_name)whereplaySoundlooks something like this:Now, playing multiple sounds at the same time is a bit more complex, but there is a good solution here.