getDom: Get lowest dominant frequency band

Description Usage Arguments Details Value

View source: R/utilities_analyze.R

Description

Internal soundgen function.

Usage

1
getDom(frame, samplingRate, bin, domSmooth, domThres, pitchFloor)

Arguments

frame

the real part of the spectrum of a frame, as returned by fft

samplingRate

sampling rate (Hz)

bin

the width of one bin in spectrogram, Hz

domSmooth

the width of smoothing interval (Hz) for finding dom

domThres

(0 to 1) to find the lowest dominant frequency band, we do short-term FFT and take the lowest frequency with amplitude at least domThres

pitchFloor

absolute bounds for pitch candidates (Hz)

Details

Calculate the lowest frequency band in the spectrum above pitchFloor whose power exceeds a certain threshold.

Value

Returns a list of $dom (NA or numeric) and $dom_array (either NULL or a dataframe of pitch candidates).


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