Usage
spectro3D(wave, f, wl = 512, wn = "hanning", zp = 0,
ovlp = 0, norm = TRUE, fftw = FALSE, dB = "max0", dBref = NULL, plot = TRUE,
magt = 10, magf = 10, maga = 2,
palette = rev.terrain.colors)
Arguments
f
sampling frequency of wave
(in Hz). Does not need to be specified if embedded in wave
.
wl
length of the window for the analysis
(even number of points).
wn
window name, see ftwindow
(by default "hanning"
). zp
zero-padding (even number of points), see Details
.
ovlp
overlap between two successive windows (in % ).
norm
if TRUE
the STFT is normalised (i. e. scaled) by its maximum.
fftw
if TRUE
calls the function FFT
of the
library fftw
. See Notes of the spectro
.
dB
a character string specifying the type dB to return:
"max0" for a maximum dB value at 0, "A", "B", "C" and "D" for common dB weights.
dBref
a dB reference value when dB
is TRUE
. NULL
by default
but should be set to 2*10e-5 for a 20 microPa reference.
plot
logical, if TRUE
plots the spectrogram
(by default TRUE
).
magt
magnification of the time axis.
magf
magnification of the frequency axis.
maga
magnification of the amplitude axis.
palette
a color palette function to be used to assign colors in
the plot, see Details
.