Solved

[c++] get mp3 samples analysis

Posted on 2008-10-07
4
540 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
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…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

776 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