View source: R/compareSounds.R
getMelSpec | R Documentation |
Internal soundgen function
getMelSpec(
s,
samplingRate = NULL,
windowLength = 40,
overlap = 50,
step = NULL,
dynamicRange = 80,
maxFreq = NULL,
specPars = list(),
plot = FALSE
)
s |
input sound (path to a .wav file or numeric vector) |
samplingRate |
if one or both inputs are numeric vectors, specify sampling rate, Hz. A vector of length 2 means the two inputs have different sampling rates, in which case spectrograms are compared only up to the lower Nyquist frequency |
windowLength |
length of FFT window, ms |
overlap |
overlap between successive FFT frames, % |
step |
you can override |
dynamicRange |
parts of the spectra quieter than |
maxFreq |
parts of the spectra above |
specPars |
a list of parameters passed to |
plot |
if TRUE, plots the spectrum |
Takes a .wav file or a waveform as numeric vector + samplingRate and returns
mel-transformed spectrum (auditory spectrum). Calls
melfcc
. See compareSounds
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.