Search code examples
javaandroidmp3midi

Extracting Audio Data from MP3/MIDI file


I want to make games that use "audio events" ( I don't know how to say it correctly) in that MP3/MIDI file. For example in MIDI, i need to extract keyboard event. The problem is that I really don't know what the representation of that event in any audio formats. Is there anybody here know what it is ?

NB: I googled around about MIDI file formats then i found good information at http://www.sonicspot.com/guide/midifiles.html but still dunno what information that i want to extract from MIDI file.


Solution

  • This could be a starting point android-midi-lib

    This project is mainly for use with Android applications that do not have access to Java's javax.sound.midi library. However, it is a stand-alone Java library with no Android-specific dependencies or considerations.

    This code provides an interface to read, manipulate, and write MIDI files. "Playback" is supported as a real-time event dispatch system.

    Frankly I'm not clear about your question, here is the Midi Events code