various functions useful in audio signal processing More...
Go to the source code of this file.
Functions | |
fvec_t * | new_aubio_window (char_t *window_type, uint_t size) |
create window More... | |
uint_t | fvec_set_window (fvec_t *window, char_t *window_type) |
set elements of a vector to window coefficients More... | |
smpl_t | aubio_unwrap2pi (smpl_t phase) |
compute the principal argument More... | |
smpl_t | aubio_bintomidi (smpl_t bin, smpl_t samplerate, smpl_t fftsize) |
convert frequency bin to midi value | |
smpl_t | aubio_miditobin (smpl_t midi, smpl_t samplerate, smpl_t fftsize) |
convert midi value to frequency bin | |
smpl_t | aubio_bintofreq (smpl_t bin, smpl_t samplerate, smpl_t fftsize) |
convert frequency bin to frequency (Hz) | |
smpl_t | aubio_freqtobin (smpl_t freq, smpl_t samplerate, smpl_t fftsize) |
convert frequency (Hz) to frequency bin | |
smpl_t | aubio_freqtomidi (smpl_t freq) |
convert frequency (Hz) to midi value (0-128) | |
smpl_t | aubio_miditofreq (smpl_t midi) |
convert midi value (0-128) to frequency (Hz) | |
void | aubio_cleanup (void) |
clean up cached memory at the end of program More... | |
smpl_t | aubio_zero_crossing_rate (fvec_t *v) |
zero-crossing rate (ZCR) More... | |
smpl_t | aubio_level_lin (fvec_t *v) |
compute sound level on a linear More... | |
smpl_t | aubio_db_spl (fvec_t *v) |
compute sound pressure level (SPL) in dB More... | |
uint_t | aubio_silence_detection (fvec_t *v, smpl_t threshold) |
check if buffer level in dB SPL is under a given threshold More... | |
smpl_t | aubio_level_detection (fvec_t *v, smpl_t threshold) |
get buffer level if level >= threshold, 1. More... | |
various functions useful in audio signal processing
Definition in file musicutils.h.
void aubio_cleanup | ( | void | ) |
clean up cached memory at the end of program
This function should be used at the end of programs to purge all cached memory. So far it is only useful to clean FFTW's cache.
compute sound pressure level (SPL) in dB
This quantity is often wrongly called 'loudness'.
This gives ten times the log10 of the average of the square amplitudes.
v | vector to compute dB SPL from |
get buffer level if level >= threshold, 1.
otherwise
v | vector to get level from |
threshold | threshold in dB SPL |
compute sound level on a linear
This gives the average of the square amplitudes.
v | vector to compute dB SPL from |
check if buffer level in dB SPL is under a given threshold
v | vector to get level from |
threshold | threshold in dB SPL |
compute the principal argument
This function maps the input phase to its corresponding value wrapped in the range \( [-\pi, \pi] \).
phase | unwrapped phase to map to the unit circle |
zero-crossing rate (ZCR)
The zero-crossing rate is the number of times a signal changes sign, divided by the length of this signal.
v | vector to compute ZCR from |
set elements of a vector to window coefficients
window | exsting fvec_t to use |
window_type | type of the window to create |
List of available window types: "rectangle", "hamming", "hanning", "hanningz", "blackman", "blackman_harris", "gaussian", "welch", "parzen", "default".
"default" is equivalent to "hanningz".
References:
create window
window_type | type of the window to create |
size | length of the window to create (see fvec_set_window()) |