extract_full_pulse: Extract full pulses of a spectrogram

Description Usage Arguments Examples

View source: R/extract_full_pulse.R

Description

Extract full pulses of a spectrogram

Usage

1
2
extract_full_pulse(spectrogram, threshold_amplitude = 10,
  min_peak_amplitude = 30, max_peak_amplitude = Inf, dimensions = 32)

Arguments

spectrogram

a soundSpectrogram object

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.

max_peak_amplitude

ignore regions where the maximum amplitude is above max_peak_amplitude.

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.

Examples

1
2
3
4
5
6
7
wav <- sound_wav(
  system.file("demo.wav", package = "soundcluster"),
  te_factor = 10,
  max_length = 0.1
)
spectrogram <- sound_spectrogram(wav)
extract_full_pulse(spectrogram, min_peak_amplitude = 20, dimensions = 16)

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