getMelSpec: Mel-transformed spectrum

Description Usage Arguments Details

View source: R/matchPars.R

Description

Internal soundgen function

Usage

1
2
getMelSpec(s, samplingRate = NULL, windowLength = 40, overlap = 50,
  step = NULL, throwaway = -120, maxFreq = NULL, plot = FALSE)

Arguments

s

input sound (path to a .wav file or numeric vector)

samplingRate

sampling rate of target (only needed if target is a numeric vector, rather than a .wav file)

windowLength

length of FFT window, ms

overlap

overlap between successive FFT frames, %

step

you can override overlap by specifying FFT step, ms

throwaway

parts of the spectra quieter than throwaway dB are not compared

maxFreq

parts of the spectra above maxFreq Hz are not compared

plot

if TRUE, plots the spectrum

Details

Takes a .wav file or a waveform as numeric vector + samplingRate and returns mel-transformed spectrum (auditory spectrum). Calls melfcc. See matchPars.


tatters/soundgen_beta documentation built on May 14, 2019, 9 a.m.