View source: R/pitchTrackers.R
getDom | R Documentation |
Internal soundgen function.
getDom(frame, bin, freqs, domSmooth, domThres, pitchFloor, pitchCeiling)
frame |
the abs spectrum of a frame, as returned by
|
bin |
spectrogram bin width, Hz |
freqs |
frequency per bin of spectrogram |
domSmooth |
the width of smoothing interval (Hz) for finding
|
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) |
Calculate the lowest frequency band in the spectrum above pitchFloor whose amplitude exceeds a certain threshold.
Returns a list of $dom (NA or numeric) and $dom_array (either NULL or a dataframe of pitch candidates).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.