getMelSpec {soundgen} | R Documentation |
Mel-transformed spectrogram
Description
Internal soundgen function
Usage
getMelSpec(
s,
samplingRate = NULL,
windowLength = 40,
overlap = 50,
step = NULL,
dynamicRange = 80,
maxFreq = NULL,
specPars = list(),
plot = FALSE
)
Arguments
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 (multiple values in a vector produce a multi-resolution spectrogram) |
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 |
Details
Takes a .wav file or a waveform as numeric vector + samplingRate and returns
mel-transformed spectrum (auditory spectrum). Calls
melfcc
. See compareSounds
.