[CLAM] Fwd: A simple C++ example.

David García Garzón david.garcia at upf.edu
Fri Mar 26 10:47:51 PDT 2010


A Divendres 26 Març 2010 10:51:08, aavila at libero.it va escriure:
> Plz, help me.
> 
> I need to create a simple C++ example that analizes a MP3 file, and
> extracts rhythm and amplitude of the signal, nothing else.
> Which classes are indicated for it? And/or does exist a wiki that can help
> me?
> 
> Thanks.

I don't fully understand what do you exactly mean by rhythm and amplitude so 
correct me if i am wrong. If you refeer to the overall max wave amplitude and 
for rhythm  you refeer to tempo/BMP you wil find useful some examples in the 
source tarball or in the svn:

For reading a file and finding its maximum, this snippet is pretty close:
CLAM/examples/AudioFileReading_example.cxx

Extracting the tempo is not that easy. There is an example contributed by 
Fabien Gouyon and others available at:
CLAM/examples/TickExtractor/

David.

-- 
David García Garzón
(Work) david dot garcia at upf anotherdot edu
http://www.iua.upf.edu/~dgarcia



More information about the clam-users mailing list