melMatrix

Computes Mel-scale filterbank matrix

@safe nothrow pure
melMatrix
(
Dtype = double
)
(
size_t nFreq
,
size_t nMel
,,
Dtype lowFreq = 20
,
Dtype highFreq = 0
)

Examples

1 import mir.ndslice : transposed;
2 import dspeech.plot : plotMatrix, docDir;
3 auto m = melMatrix!double(200, 40, 16000.0);
4 m.transposed.plotMatrix.save(
5     docDir ~ "dspeech.feature.mel.png",
6     cast(int) m.length!0 * 3, cast(int) m.length!1 * 9);

Meta