DetectBLED: DetectBLED

View source: R/DetectBLED.R

DetectBLEDR Documentation

DetectBLED

Description

Function to do band-limited energy summation to find sound events. This function only identifies sound events based on frequency and duration so is not expected to have high precision.

Usage

DetectBLED(
  input,
  input.type = "wav",
  min.freq = 200,
  max.freq = 6000,
  noise.quantile.val = 0.75,
  spectrogram.window = 1600,
  subsample.dur = 300,
  training.label = "noise",
  pattern.split = ".wav",
  min.signal.dur = 1,
  max.sound.event.dur = 6,
  wav.output = "TRUE",
  output.dir = getwd(),
  swift.time = TRUE,
  time.start = 18,
  time.stop = 23,
  write.table.output = TRUE,
  verbose = TRUE,
  random.sample = 100
)

Arguments

input

Either full path to directory containing .wav files or a list with file name as first element and .wav as second element

input.type

Either 'directory', 'list' or 'wav'

min.freq

Minimum frequency (Hz) of signal of interest

max.freq

Maximum frequency (Hz) of signal of interest

noise.quantile.val

A quantile value between 0 to 1 for the band energy summation

spectrogram.window

Window length for spectrogram analysis (input to spectro fuction from 'seewave')

subsample.dur

Duration (s) to divide longer sound file to increase processing efficiency

training.label

Label to append to saved .wav files

pattern.split

Pattern to find and remove to create file name; currently set to ".rda"

min.signal.dur

The minimum duration (s) sound events must be to be considered sound events

max.sound.event.dur

The maximum duration (s) sound events must be to be considered sound events

wav.output

Logical; output wave file of sound events?

output.dir

Specified output directory; set to current working directory

swift.time

If file name is in structure recorder_YYYYMMDD_HHMMSS can subset files based on specific times

time.start

Time recordings start (hour)

time.stop

Time recordings stop (hour)

write.table.output

Logical; write Raven selection tables to output directory

verbose

Logical; print out steps

random.sample

If a random subset of files in a directory are desired specify a value, otherwise 'NA'

output

Either 'spectro', 'table' or 'wav'


DenaJGibbon/gibbonR documentation built on Nov. 28, 2024, 2:52 a.m.