Solved

[c++] get mp3 samples analysis

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
GUI: DIalog Stacking and Popping in MS C++ 4 87
Free AVI to DICOM converter 8 417
algorithm 15 125
draw a Christmas tree by using a nested loop? 26 92
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Prime numbers are natural numbers greater than 1 that have only two divisors (the number itself and 1). By “divisible” we mean dividend % divisor = 0 (% indicates MODULAR. It gives the reminder of a division operation). We’ll follow multiple approac…
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 use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

713 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