Alias: null
Common Name: MelFilterBank
Class: org. imirsel. m2k. filters. MelFilterBank

Overview: This module takes as input, a magnitude or power spectrum in the range from omega = [0, pi] and filters the spectrum through Mel-spaced triangular overlapping filters.

Detailed Description: A spectrum on the range omegae [0, pi] represented as a 1 dimensional double array is taken as input, as well as the sample rate. Low and high frequency bounds are set as parameters as a ratio to the sample rate. Therefore, these values should be in the range of [0.0, 0.5], to represent DC and the half sample rate, respectively. A Mel filterbank with a settable number of filters is constructed and applied to the inputs, producing a 1-dimensional double array output, whose dimensionality is the number of filters used.

Data Handling: The input data is not modified.


Inputs:
Input Magnitude Spectrum
[D
Magnitude Spectrum (1-D double array).

Sample Rate
java. lang. Integer
Sample Rate (int)


Outputs:
Mel Filter Ouputs
[D
The bands of the Filter bank (1-D double array).



Properties:
Number of filters in the Mel-scale filter bank
Sets the number of triangular Mel spaced filters to be used in the filterbank

Low frequency edge as ratio of sample rate
Sets the lowest frequency edge of the lowest filter in the filterbank. The scale is in terms of ratio to sample rate, i.e 0.0 being DC and 0.5 being the Nyquist frequency (half sample rate). Default is 0.

High frequency edge as ratio of sample rate
Sets the highest frequency edge of the highest filter in the filterbank. The scale is in terms of ratio to sample rate, i.e 0.0 being DC and 0.5 being the Nyquist frequency (half sample rate). Default is 0.5 .