Reputation: 68
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.
Upvotes: 2
Views: 1178
Reputation: 1
here I'm providing the info for extract metadata from Mp3 file with example.
!pip install audio_metadata
import pandas as pd
import audio_metadata #import library
metadata = audio_metadata.load('DJ Snake - Let Me Love You ft. Justin Bieber.mp3')
dict1 = {"Title":metadata.tags.title}
pd.DataFrame(dict1).to_csv('samplz.csv')
Upvotes: 0
Reputation: 33792
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
Upvotes: 1