0

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.

3
Contributors
3
Replies
5
Views
8 Years
Discussion Span
Last Post by Nick Evan
0

Learn C++, learn the format of selected file type, study endless audio algorithms till you go blind.

I was studying audio manipulation algorithms for more than a month now. With all the available code being extensive and thorough to cover all aspects of audio processing, it's really difficult to find the piece of code that I need in such massive algorithms.

At this rate, I will be going blind soon. Not expecting a full code from anyone, just hoping for pointers in the right direction. For startes, how do you open an mp3 file in C++ or VB.NET?

0

For startes, how do you open an mp3 file in C++ or VB.NET?

like this:

ifstream infile ("Never_Gonna_Give_You_Up.mp3", ios::in|ios::binary);

Next I would start by reading out the header, which would be the 'simple' part of the program

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.