harmHeight_dif: Height of harmonics: difference method

View source: R/spectralDescr.R

harmHeight_difR Documentation

Height of harmonics: difference method

Description

Internal soundgen function

Usage

harmHeight_dif(
  frame_dB,
  pitch,
  bin,
  freqs,
  harmThres = 3,
  harmTol = 0.25,
  harmPerSel = 5,
  plot = FALSE
)

Arguments

pitch

the final pitch estimate for the current frame

bin

spectrogram bin width, Hz

freqs

frequency per bin of spectrogram

harmThres

minimum height of spectral peak, dB

harmTol

maximum tolerated deviation of peak frequency from multiples of f0, proportion of f0

harmPerSel

the number of harmonics per sliding selection

plot

if TRUE, produces a plot of spectral peaks

Details

Estimates how far harmonics reach in the spectrum by analyzing the typical distances between spectral peaks in different frequency regions.


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