Search code examples
pythonmp3music21

Is it possible to analyze mp3 file using music21?


I am looking for python library to find out a key and tempo of the song recorded in MP3 format. I've found the music21 lib that allows doing that. But it seems like it works only with midi files. Does somebody know how to parse MP3 files using music21 and get the required sound characteristics? If it is impossible, please suggest another library.


Solution

  • No, this is not possible. Music21 can only process data stored in musical notation data formats, like MIDI, MusicXML, and ABC.

    Converting a MP3 audio file to notation is a complex task, and isn't something that software can reliably accomplish at this point.