aubio 0.4.9
|
Filterbank object. More...
Go to the source code of this file.
Typedefs | |
typedef struct _aubio_filterbank_t | aubio_filterbank_t |
filterbank object More... | |
Functions | |
aubio_filterbank_t * | new_aubio_filterbank (uint_t n_filters, uint_t win_s) |
create filterbank object More... | |
void | del_aubio_filterbank (aubio_filterbank_t *f) |
destroy filterbank object More... | |
void | aubio_filterbank_do (aubio_filterbank_t *f, const cvec_t *in, fvec_t *out) |
compute filterbank More... | |
fmat_t * | aubio_filterbank_get_coeffs (const aubio_filterbank_t *f) |
return a pointer to the matrix object containing all filter coefficients More... | |
uint_t | aubio_filterbank_set_coeffs (aubio_filterbank_t *f, const fmat_t *filters) |
copy filter coefficients to the filterbank More... | |
uint_t | aubio_filterbank_set_norm (aubio_filterbank_t *f, smpl_t norm) |
set norm parameter More... | |
smpl_t | aubio_filterbank_get_norm (aubio_filterbank_t *f) |
get norm parameter More... | |
uint_t | aubio_filterbank_set_power (aubio_filterbank_t *f, smpl_t power) |
set power parameter More... | |
smpl_t | aubio_filterbank_get_power (aubio_filterbank_t *f) |
get power parameter More... | |
typedef struct _aubio_filterbank_t aubio_filterbank_t |
filterbank object
This object stores a matrix of spectral filter coefficients.
Definition at line 45 of file filterbank.h.
void aubio_filterbank_do | ( | aubio_filterbank_t * | f, |
const cvec_t * | in, | ||
fvec_t * | out | ||
) |
compute filterbank
f | filterbank object, as returned by new_aubio_filterbank() |
in | input spectrum containing an input spectrum of length win_s |
out | output vector containing the energy found in each band, nfilt output values |
fmat_t * aubio_filterbank_get_coeffs | ( | const aubio_filterbank_t * | f | ) |
return a pointer to the matrix object containing all filter coefficients
f | filterbank object, as returned by new_aubio_filterbank() |
smpl_t aubio_filterbank_get_norm | ( | aubio_filterbank_t * | f | ) |
get norm parameter
f | filterbank object, as returned by new_aubio_filterbank() |
1
if norm is set, 0
otherwise. Defaults to 1
. smpl_t aubio_filterbank_get_power | ( | aubio_filterbank_t * | f | ) |
get power parameter
f | filterbank object, as returned by new_aubio_filterbank() |
1
. uint_t aubio_filterbank_set_coeffs | ( | aubio_filterbank_t * | f, |
const fmat_t * | filters | ||
) |
copy filter coefficients to the filterbank
f | filterbank object, as returned by new_aubio_filterbank() |
filters | filter bank coefficients to copy from |
uint_t aubio_filterbank_set_norm | ( | aubio_filterbank_t * | f, |
smpl_t | norm | ||
) |
set norm parameter
f | filterbank object, as returned by new_aubio_filterbank() |
norm | 1 to norm the filters, 0 otherwise. |
If set to 0
, the filters will not be normalized. If set to 1
, each filter will be normalized to one. Defaults to 1
.
This function should be called before setting the filters with one of aubio_filterbank_set_triangle_bands(), aubio_filterbank_set_mel_coeffs(), aubio_filterbank_set_mel_coeffs_htk(), or aubio_filterbank_set_mel_coeffs_slaney().
uint_t aubio_filterbank_set_power | ( | aubio_filterbank_t * | f, |
smpl_t | power | ||
) |
set power parameter
f | filterbank object, as returned by new_aubio_filterbank() |
power | Raise norm of the input spectrum norm to this power before computing filterbank. Defaults to 1 . |
void del_aubio_filterbank | ( | aubio_filterbank_t * | f | ) |
destroy filterbank object
f | filterbank object, as returned by new_aubio_filterbank() |
aubio_filterbank_t * new_aubio_filterbank | ( | uint_t | n_filters, |
uint_t | win_s | ||
) |
create filterbank object
n_filters | number of filters to create |
win_s | size of analysis buffer (and length the FFT transform) |