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_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
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
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)
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_level_detection(fvec_t *v, smpl_t threshold)
get buffer level if level >= threshold, 1.
smpl_t aubio_level_lin(fvec_t *v)
compute sound level on a linear
fvec_t * new_aubio_window(char_t *window_type, uint_t size)
create window
unsigned int uint_t
unsigned integer
smpl_t aubio_zero_crossing_rate(fvec_t *v)
zero-crossing rate (ZCR)
smpl_t aubio_db_spl(fvec_t *v)
compute sound pressure level (SPL) in dB
uint_t aubio_silence_detection(fvec_t *v, smpl_t threshold)
check if buffer level in dB SPL is under a given threshold