View source: R/modulationSpectrum.R
modulationSpectrumFragment | R Documentation |
Internal soundgen function.
modulationSpectrumFragment(
sound,
samplingRate,
windowLength,
windowLength_points,
step,
step_points,
wn = "hanning",
zp = 0,
logSpec = FALSE,
power = 1,
normalize = TRUE
)
sound |
numeric vector |
samplingRate |
sampling rate of |
windowLength |
length of FFT window, ms |
step |
you can override |
wn |
window type accepted by |
zp |
window length after zero padding, points |
logSpec |
if TRUE, the spectrogram is log-transformed prior to taking 2D FFT |
power |
raise modulation spectrum to this power (eg power = 2 for ^2, or "power spectrum") |
normalize |
if TRUE, the modulation spectrum of each analyzed fragment
|
s = soundgen(amFreq = 25, amDep = 100)
ms = soundgen:::modulationSpectrumFragment(s, 16000,
windowLength = 50, windowLength_points = .05 * 16000,
step = 5, step_points = .005 * 16000)
image(as.numeric(colnames(ms$ms_half)), as.numeric(rownames(ms$ms_half)),
t(log(ms$ms_half)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.