Learn R Programming

soundgen (version 2.7.3)

findBursts: Find bursts

Description

Internal soundgen function.

Usage

findBursts(
  ampl,
  step,
  windowLength,
  interburst,
  burstThres,
  peakToTrough,
  troughLocation = "either",
  scale = c("dB", "linear")[2]
)

Value

Returns a dataframe with timing of bursts

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 (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'

scale

maximum possible amplitude of input used for normalization of input vector (only needed if x is a numeric vector)

Details

Called by segment.