Documentation ¶
Overview ¶
Package f0 provides support for fundamental frequency (f0) estimatnion.
Package f0 provides support for fundamental frequency estimation.
Index ¶
Constants ¶
View Source
const ( DefaultBufferSize = 2048 DefaultThreshold = 0.15 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type YIN ¶
type YIN struct { Buffer []float64 // Buffer used in the YIN analysis BufferSize int SampleRate int Threshold float64 // Threshold used in the absolute thresholding step }
YIN represents the YIN fundamental frequency estimator.
func (*YIN) AbsoluteThreshold ¶
Step 4: Absolute threshold
func (*YIN) ComputeF0 ¶
ComputeF0 computes f0 and its confidence for a given audio buffer. If no f0 is found, it returns pair of zeros.
func (*YIN) CumulativeMeanNormalizedDifference ¶
func (y *YIN) CumulativeMeanNormalizedDifference()
Step 3: Cumulative mean normalized difference function
func (*YIN) ParabolicInterpolation ¶
Step 5: Parabolic Interpolation
Click to show internal directories.
Click to hide internal directories.