sound_spectrogram: Convert the output of read_wav to a spectrogram

Description Usage Arguments Examples

View source: R/sound_spectrogram.R

Description

Convert the output of read_wav to a spectrogram

Usage

1
2
sound_spectrogram(wav, window_ms = 1, overlap = 0.9,
  frequency_range = c(10000, 130000))

Arguments

wav

An object as created by sound_wav

window_ms

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

overlap

The overlap of two windows. Defaults to 0.9.

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).

Examples

1
2
3
4
5
6
wav <- sound_wav(
  system.file("demo.wav", package = "soundcluster"),
  te_factor = 10,
  max_length = 0.1
)
sound_spectrogram(wav)

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