Internal soundgen function.
findBursts(
ampl,
step,
windowLength,
interburst,
burstThres,
peakToTrough,
troughLocation = "either",
scale = c("dB", "linear")[2]
)
Returns a dataframe with timing of bursts
downsampled amplitude envelope
time difference between two points in the envelope (ms)
length of FFT window, ms
minimum time between two consecutive bursts (ms). Defaults
to the average detected (syllable + pause) / 2
to qualify as a burst, a local maximum has to be at least
peakToTrough
dB above the left and/or right local trough(s)
(controlled by troughLocation
) over the analysis window (controlled
by interburst
). Defaults to SNR + 3 dB
should local maxima be compared to the trough on the left and/or right of it? Values: 'left', 'right', 'both', 'either'
maximum possible amplitude of input used for normalization of
input vector (only needed if x
is a numeric vector)
Called by segment
.