When plot is FALSE, specflux returns a two-column matrix, the
first column being time in seconds (x-axis) and the second column being the spectral flux (y-axis) computed along time.
Arguments
wave
an R object.
f
sampling frequency of wave (in Hz). Does not need to
be specified if embedded in wave.
channel
channel of the R object, by default left channel (1).
wl
window length for the analysis
(even number of points) (by default = 512).
ovlp
overlap between two successive windows (in %).
wn
window name, see ftwindow (by default "rectangle").
flim
a numeric vector of length 2 to select a frequency band
(in kHz).
norm
if is TRUE then the normalised spectra are
used. The spectra are normalised by their sum.
p
the norm type, by default = 2.
plot
logical, if TRUE the spectral flux is displayed
against time (s) (by default TRUE).
xlab
title of the x axis.
ylab
title of the y axis.
type
if plot is TRUE, type of plot that should be drawn.
See plot for details (by default "l" for lines).
The spectral flux (\(F\)) is the sum of the time (\(t\)) derivative of
the columns -- that is the successive spectra --
(\(s\)) of the normalized short-term Fourier transform (\(z\)).
F is then computed according to:
$$F = (\sum |s(t+1) - s(t)|^{p})^{\frac{1}{p}}$$
References
Scheirer E, Slaney M (1997). Construction and evaluation of a robust multifeature speech/music discriminator.
IEEE International Conference on Acoustics, Speech, and Signal Processing, 2, 1221-1224.
## default usedata(tico)
specflux(tico)
## norm 1specflux(tico, p = 1)
## frequency limit between 2 and 4 kHzspecflux(tico, flim = c(2,4))
## index computationsum(specflux(tico, plot=FALSE)[,2])