Internal soundgen function.
findBursts(envelope, timestep, interburst, burstThres, peakToTrough,
troughLeft = TRUE, troughRight = FALSE)downsampled amplitude envelope
time difference between two points in the envelope (ms)
minimum time between two consecutive bursts (ms). If
specified, it overrides interburstMult
to qualify as a burst, a local maximum has to be at least
burstThres times the height of the global maximum of amplitude
envelope
to qualify as a burst, a local maximum has to be at
least peakToTrough times the local minimum on the LEFT over
analysis window (which is controlled by interburst or
interburstMult)
should local maxima be compared to the trough on the left and/or right of it? Default to TRUE and FALSE, respectively
should local maxima be compared to the trough on the left and/or right of it? Default to TRUE and FALSE, respectively
Returns a dataframe with timing of bursts
Called by segment.