Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

[c++] get mp3 samples analysis

Posted on 2008-10-07
4
Medium Priority
?
548 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
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 additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

705 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