25 #ifndef AUBIO_MUSICUTILS_H 26 #define AUBIO_MUSICUTILS_H smpl_t aubio_bintofreq(smpl_t bin, smpl_t samplerate, smpl_t fftsize)
convert frequency bin to frequency (Hz)
smpl_t aubio_meltohz(smpl_t mel)
convert mel to frequency (Hz)
smpl_t aubio_bintomidi(smpl_t bin, smpl_t samplerate, smpl_t fftsize)
convert frequency bin to midi value
smpl_t aubio_unwrap2pi(smpl_t phase)
compute the principal argument
smpl_t aubio_level_lin(const fvec_t *v)
compute sound level on a linear scale
void aubio_cleanup(void)
clean up cached memory at the end of program
smpl_t aubio_freqtobin(smpl_t freq, smpl_t samplerate, smpl_t fftsize)
convert frequency (Hz) to frequency bin
smpl_t aubio_level_detection(const fvec_t *v, smpl_t threshold)
get buffer level if level >= threshold, 1.
float smpl_t
short sample format (32 or 64 bits)
smpl_t aubio_miditofreq(smpl_t midi)
convert midi value (0-128) to frequency (Hz)
void fvec_clamp(fvec_t *in, smpl_t absmax)
clamp the values of a vector within the range [-abs(max), abs(max)]
smpl_t aubio_freqtomidi(smpl_t freq)
convert frequency (Hz) to midi value (0-128)
uint_t fvec_set_window(fvec_t *window, char_t *window_type)
set elements of a vector to window coefficients
smpl_t aubio_miditobin(smpl_t midi, smpl_t samplerate, smpl_t fftsize)
convert midi value to frequency bin
smpl_t aubio_hztomel_htk(smpl_t freq)
convert frequency (Hz) to mel
smpl_t aubio_meltohz_htk(smpl_t mel)
convert mel to frequency (Hz)
fvec_t * new_aubio_window(char_t *window_type, uint_t size)
create window
smpl_t aubio_db_spl(const fvec_t *v)
compute sound pressure level (SPL) in dB
unsigned int uint_t
unsigned integer
smpl_t aubio_zero_crossing_rate(fvec_t *v)
zero-crossing rate (ZCR)
uint_t aubio_silence_detection(const fvec_t *v, smpl_t threshold)
check if buffer level in dB SPL is under a given threshold
smpl_t aubio_hztomel(smpl_t freq)
convert frequency (Hz) to mel