functional_create_fb_matrix.Rd
Create a frequency bin conversion matrix.
functional_create_fb_matrix(
n_freqs,
f_min,
f_max,
n_mels,
sample_rate,
norm = NULL
)
(int): Number of frequencies to highlight/apply
(float): Minimum frequency (Hz)
(float or NULL): Maximum frequency (Hz). If NULL defaults to sample_rate %/% 2
(int): Number of mel filterbanks
(int): Sample rate of the audio waveform
(chr) (Optional): If 'slaney', divide the triangular
mel weights by the width of the mel band (area normalization). (Default: NULL
)
tensor
: Triangular filter banks (fb matrix) of size (n_freqs
, n_mels
)
meaning number of frequencies to highlight/apply to x the number of filterbanks.
Each column is a filterbank so that assuming there is a matrix A of
size (..., n_freqs
), the applied result would be
A * functional_create_fb_matrix(A.size(-1), ...)
.