Description Usage Arguments Value Note Author(s) References See Also Examples

Generate a matrix of weights to combine FFT bins into Bark/Mel bins.

1 2 3 4 5 |

`nfft` |
Source FFT size. |

`sr` |
Sampling rate of the signal. |

`nfilts` |
Number of desired output frequency bands. If |

`width` |
Width of each output frequency band in Bark/Mel. |

`minfreq` |
Minimum frequency. |

`maxfreq` |
Maximum frequency. |

`htkmel` |
Use HTK- or Slaney's curve of the Melscale. |

`constamp` |
Make integration windows peak at 1 ( |

`wts ` |
The weight matrix with 'nfft' columns and 'nfilts' rows. |

`binfreqs ` |
Edge frequencies of the bins. |

While wts has nfft columns, the second half are all zero.
Hence, Bark spectrum is `fft2barkmx(nfft, sr) %*% abs(fft(xincols, nfft))`

.

Sebastian Krey kr[email protected]

Daniel P. W. Ellis: http://www.ee.columbia.edu/~dpwe/resources/matlab/rastamat/, Malcolm Slaney: Auditory Toolbox http://cobweb.ecn.purdue.edu/~malcolm/interval/1998-010/

1 2 | ```
#Mel matrix in Slaney's mfcc.m:
#tuneR:::fft2melmx(512, 8000, 40, 1, 133.33, 6855.5, FALSE, FALSE)
``` |

```
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.