Internal soundgen function
parabPeakInterpol(threePoints, plot = FALSE)
if TRUE, plot the points and the fit parabola
the amplitudes of three adjacent points (beta is the peak), ideally spectrum on a dB scale, obtained with a Gaussian window
Takes a spectral peak and two adjacent points, fits a parabola through them, and thus estimates true peak location relative to the discrete peak. See https://ccrma.stanford.edu/~jos/sasp/Quadratic_Interpolation_Spectral_Peaks.html
Returns a list: $p = the correction coefficient in bins (idx_beta + p gives the true peak), $ampl_p = the amplitude of the true peak
soundgen:::parabPeakInterpol(c(-1, 0, -4), plot = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.