waveCutter: waveCutter

Description Usage Arguments Value

View source: R/waveCutter.R

Description

Takes a dataframe with event starts and ends (see output from findSyllables), and produces .wav files for each of these selections, along with a corresponding spectrogram

Usage

1
2
3
4
5
6
7
8
9
waveCutter(
  X,
  padding = 0.03,
  units = "seconds",
  low = 1000,
  high = 22000,
  write.wavs = TRUE,
  write.specs = FALSE
)

Arguments

X

Vector of filenames

padding

Time to be added before and after each selection, is seconds or milliseconds

units

time unit for padding, either "seconds" (default) or "ms"

low

in Hz, lower frequency limit for filter, optional

high

in Hz, higher frequency limit for filter, optional

write.wavs

logical, should the wav files for each selection be saved?

write.specs

logical, should the spectrograms files for each selection be saved?

Value

Returns a dataframe with six columns: X = original filenames, "waves" = .wav filenames, "spectrograms" = spectrogram filenames


vrios/songspellR documentation built on Dec. 23, 2021, 4:12 p.m.