findBursts {soundgen} | R Documentation |
Find bursts
Description
Internal soundgen function.
Usage
findBursts(
ampl,
step,
windowLength,
interburst,
burstThres,
peakToTrough,
troughLocation = "either",
scale = c("dB", "linear")[2]
)
Arguments
ampl |
downsampled amplitude envelope |
step |
time difference between two points in the envelope (ms) |
windowLength |
length of FFT window, ms (multiple values in a vector produce a multi-resolution spectrogram) |
interburst |
minimum time between two consecutive bursts (ms). Defaults
to the average detected |
peakToTrough |
to qualify as a burst, a local maximum has to be at least
|
troughLocation |
should local maxima be compared to the trough on the left and/or right of it? Values: 'left', 'right', 'both', 'either' |
scale |
maximum possible amplitude of input used for normalization of
input vector (only needed if |
Details
Called by segment
.
Value
Returns a dataframe with timing of bursts