Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

[c++] get mp3 samples analysis

Posted on 2008-10-07
4
Medium Priority
?
549 Views
Last Modified: 2012-05-05
First, I'm programming a tool for mp3 file analysis (vloume, genere, beat)...

But I'm stuck on the start...

As you know a music file is assembled from a number of samples per second (samplerate)...

I'm looking for a script that would fill all the samples from a file to an array.

Thanks for your help.
0
Comment
Question by:Rok-Kralj
  • 3
4 Comments
 
LVL 12

Author Comment

by:Rok-Kralj
ID: 22662118
Basically, I'm looking for a class / algorithm that would get all sound samples inside a mp3 file to easy-readable structure (ex. array, list).
0
 
LVL 27

Expert Comment

by:d-glitch
ID: 22671348
You are missing an enormous intermediate step:

MP3 files are highly compressed.  
You need an MP# CODEC (COder/DECoder) to convert the file into a
stream of audio samples.

Check out the open source LAME CODEC:

     http://lame.sourceforge.net/inside.php


What exactly are you trying to do?
0
 
LVL 12

Accepted Solution

by:
Rok-Kralj earned 0 total points
ID: 22671512
I wanted to use Wmp3, but it uses <windows.h> lib. It would probably suit me well.

I'm trying to analyze BpS (beats per second), melodics, genere (rock, metal, pop) und zo weiter.
0
 
LVL 12

Author Comment

by:Rok-Kralj
ID: 22749047
anyone?
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question