wav2db: Extract pulses and store them in a soundcluster database

Description Usage Arguments

View source: R/wav2db.R

Description

Extract pulses and store them in a soundcluster database

Usage

1
2
3
4
5
wav2db(db, path, recursive = TRUE, make, model, serial = NA_character_,
  te_factor = 1, channel = c("left", "right"), max_length = 30,
  window_ms = 1, overlap = 0.9, threshold_amplitude = 10,
  min_peak_amplitude = 30, dimensions = 32, existing = c("append",
  "skip"), frequency_range = c(10000, 130000))

Arguments

db

A connection to a soundcluster database

path

the name of a file or a directory

recursive

logical. Should the listing recurse into directories?

make

the manufacturer of the device

model

the model of the device

serial

the optional serial number of the device

te_factor

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

channel

Select the left or the right channel

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.

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.

existing

what to do with existing spectrograms. "append" will add new pulses. "skip" will skip the recording.

frequency_range

the range of frequencies to use in Hz. Frequencies below the minimum or above the maximum are removed from the spectrogram. Defaults to 10000 (10 kHz) and 130000 (130 kHz).


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