SpectrogramSingle: Code to calculate a spectrogram for a single sound file

Description Usage Arguments Value Examples

View source: R/SpectrogramSingle.R

Description

Code to calculate a spectrogram for a single sound file

Usage

1
2
3
4
5
6
7
8
SpectrogramSingle(
  sound.file,
  min.freq = 500,
  max.freq = 8000,
  Colors = "BW",
  downsample = TRUE,
  downsample.new = 16000
)

Arguments

sound.file

The location of the .wav file

min.freq

The minimum frequency (Hz) of the signal of interest

max.freq

The maximum frequency (Hz) of the signal of interest

Colors

Whether to return a black and white or color spectrogram

downsample

If the sound file should be downsampled before creating the spectrogram

downsample.new

<- The frequency (Hz) to downsample to

Value

a spectrogram image

Examples

1
2
SpectrogramSingle(sound.file ="FocalRecordings/FemaleGibbon_1.wav",
min.freq = 500,max.freq=2500,Colors = 'Colors')

DenaJGibbon/behaviouR documentation built on Aug. 27, 2020, 10:57 p.m.