I need to write a function in C++ that does the following:
-Reads an audio file as input (preferably in Mp3 format).
-Calculates the average frequency (Hz) and the tempo (bpm) of that file.
-Stores the average frequency and tempo for future use.
Any idea on how to write such a function? Thanks.