wav2rds: Extract the pulses in all files

Description Usage Arguments

View source: R/wav2rds.R

Description

Read the wav files in a directory, extract the pulses and store them in one rds file per wav file.

Usage

1
2
3
4
wav2rds(path = ".", recursive = TRUE, existing = c("skip", "append",
  "overwrite"), threshold_amplitude = 10, min_peak_amplitude = 30,
  dimensions = 32, channel = c("left", "right"), te_factor = 1,
  max_length = 5, window_ms = 1, overlap = 0.9)

Arguments

path

the name of a file or a directory

recursive

logical. Should the listing recurse into directories?

existing

what to do with existing rds files. Options are skip, append and overwrite.

threshold_amplitude

relevant regions have an amplitude above the threshold_amplitude. Defaults to 10 dB.

min_peak_amplitude

the maximum amplitude in a relevant region must be above min_peak_amplitude. Defaults to 30 dB.

dimensions

the number of rows and columns used to resample the shape. Must be a single number and a power of 2. Will be altered to the next power of 2.

channel

Select the left or the right channel

te_factor

The factor to which the original sound was slowed down prior to recording

max_length

Maximum length of the recording to use in seconds. If the recording is longer, the last part is ignored.

window_ms

The size of the window in microseconds. Default to 1.

overlap

The overlap of two windows. Defaults to 0.9.


ThierryO/soundcluster documentation built on May 26, 2019, 12:30 a.m.