findBursts: Find bursts

View source: R/segment_utilities.R

findBurstsR 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

interburst

minimum time between two consecutive bursts (ms). Defaults to the average detected (syllable + pause) / 2

peakToTrough

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

troughLocation

should local maxima be compared to the trough on the left and/or right of it? Values: 'left', 'right', 'both', 'either'

Details

Called by segment.

Value

Returns a dataframe with timing of bursts


tatters/soundgen documentation built on Aug. 22, 2023, 4:24 p.m.