harmHeight_peaks: Height of harmonics: peaks method

View source: R/spectralDescr.R

harmHeight_peaksR Documentation

Height of harmonics: peaks method

Description

Internal soundgen function

Usage

harmHeight_peaks(
  frame_dB,
  pitch,
  bin,
  freqs,
  harmThres = 3,
  harmTol = 0.25,
  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

plot

if TRUE, produces a plot of spectral peaks

Details

Estimates how far harmonics reach in the spectrum by checking how many spectral peaks we can find close to multiples of f0.


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