Solved

[c++] get mp3 samples analysis

Posted on 2008-10-07
4
538 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
anyone?
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
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 pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
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.

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now