getDom: Get lowest dominant frequency band

View source: R/pitchTrackers.R

getDomR Documentation

Get lowest dominant frequency band

Description

Internal soundgen function.

Usage

getDom(frame, bin, freqs, domSmooth, domThres, pitchFloor, pitchCeiling)

Arguments

frame

the abs spectrum of a frame, as returned by fft

bin

spectrogram bin width, Hz

freqs

frequency per bin of spectrogram

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, pitchCeiling

absolute bounds for pitch candidates (Hz)

Details

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

Value

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


soundgen documentation built on Aug. 14, 2022, 5:05 p.m.