Marsyas  0.6.0-alpha
Namespaces | Functions
/usr/src/RPM/BUILD/marsyas-0.6.0/src/marsyas/Conversions.h File Reference

Various conversion functions. More...

#include <marsyas/common_header.h>
#include <cmath>
#include <string>

Go to the source code of this file.

Namespaces

namespace  Marsyas

Functions

marsyas_EXPORT mrs_real amplitude2dB (mrs_real a)
marsyas_EXPORT mrs_real bark2hertz (mrs_real f, mrs_natural mode=0)
marsyas_EXPORT mrs_real bin2hertz (mrs_natural bin, mrs_real nyquistFreq, mrs_real framerate)
marsyas_EXPORT mrs_real dB2amplitude (mrs_real a)
marsyas_EXPORT mrs_real erb2hertz (mrs_real e)
marsyas_EXPORT mrs_real hertz2bark (mrs_real f, mrs_natural mode=0)
marsyas_EXPORT mrs_real hertz2erb (mrs_real f)
marsyas_EXPORT mrs_real hertz2mel (mrs_real f, bool htk=false)
marsyas_EXPORT mrs_real hertz2octs (mrs_real f, mrs_real middleAfreq=440.0)
marsyas_EXPORT mrs_real hertz2pitch (mrs_real hz)
marsyas_EXPORT mrs_natural hertz2samples (mrs_real hz, mrs_real srate)
marsyas_EXPORT mrs_real mel2hertz (mrs_real z, bool htk=false)
marsyas_EXPORT mrs_real pitch2hertz (mrs_real pitch)
marsyas_EXPORT mrs_natural powerOfTwo (mrs_real v)
marsyas_EXPORT mrs_real samples2hertz (mrs_real samples, mrs_real srate)
marsyas_EXPORT mrs_real samples2hertz (mrs_natural samples, mrs_real srate)
marsyas_EXPORT void string2parameters (std::string s, realvec &v, char d)
marsyas_EXPORT mrs_natural time2samples (std::string time, mrs_real srate)
marsyas_EXPORT mrs_natural time2usecs (std::string time)

Detailed Description

Various conversion functions.

Definition in file Conversions.h.