Clear Filters
Clear Filters

How to get musical genre from an audio file

3 views (last 30 days)
Hello,
recently, I got familiar with MATLAB built-in functions audioinfo, audioread etc. However, I need to load in my code the information about genre, and other properties not reported by audioinfo. How can I get them?
Thanks to all!
Davide

Answers (1)

Walter Roberson
Walter Roberson on 4 Nov 2016
Musical genre is not often stored with the file.
Because there is no standard for storing genre (when it is there), you need to know which method has been used for the files of interest to you; with a specific method, we might be able to identify a method of retrieving the information, possibly.
  2 Comments
Davide Miani
Davide Miani on 4 Nov 2016
Edited: Davide Miani on 4 Nov 2016
My script load information from my musical library created by iTunes. All audio files are stored with .m4a extension and all of them contains title, artist, year and also genre and album cover (another fields unaccessible with MATLAB). I hope this complete informations about my problem. However, thanks for your reply!
Walter Roberson
Walter Roberson on 5 Nov 2016
Would parsing the itunes XML file be acceptable? In particular "iTunes Music Library.xml" inside the ~/Music/iTunes directory

Sign in to comment.

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!