[outsig, fc] = auditoryfilterbank(insig, fs); [outsig, fc] = auditoryfilterbank(insig, fs, flow); [outsig, fc] = auditoryfilterbank(insig, fs, flow, fhigh);
| insig | Acoustic signal. Size: (time x channels). |
| fs | Sampling rate (in Hz). |
| flow | Optional frequency (in Hz) of the lowest filter. Default: 80 Hz. |
| fhigh | Optional frequency (in Hz) of the highest filter. Default: 8 kHz. |
| outsig | Filtered output. Size: (time x numfc x channels). |
| fc | Center frequencies (in Hz) of the applied filterbank. The number of filters numfc is the result of flow, fhigh and bwmul. Default: 31. |
auditoryfilterbank(insig, fs) applies the Gammatone filterbank to the signal insig sampled with fs. The filterbank will be composed of 31 filters from 80 Hz to 8 kHz spaced 1 ERB apart.
[outsig, fc] = auditoryfilterbank(...) additionally returns the center frequencies fc of the filterbank.
This function takes the following optional key-value pairs:
| 'flow',flow | As flow. |
| 'fhigh',fhigh | As fhigh. |
| 'basef',basef | Center one filter exactly at basef (in Hz) and spread other filters accordingly. Default: [], which means that the filters will be spread optimally between flow and fhigh. |
| 'bwmul',bwmul | Spacing of the auditory filters in the ERB rate. Default: 1, which means that filters will be spaced one ERB apart. |