PitchProcessorConfig

data class PitchProcessorConfig(val enableSmoothing: Boolean = true, val enableOctaveCorrection: Boolean = true, val smoothingWindowSize: Int = 5, val octaveThresholdCents: Float = 150.0f, val referencePitchHz: Float = 0.0f)

Configuration for pitch post-processing. Shared by both realtime and batch post-processing.

Constructors

Link copied to clipboard
constructor(enableSmoothing: Boolean = true, enableOctaveCorrection: Boolean = true, smoothingWindowSize: Int = 5, octaveThresholdCents: Float = 150.0f, referencePitchHz: Float = 0.0f)

Properties

Link copied to clipboard

Enable octave error correction (fixes YIN detector octave errors)

Link copied to clipboard

Enable weighted smoothing filter

Link copied to clipboard

How close to 1200 cents a jump must be to be corrected. 150 = correct jumps between 1050-1350 cents (within 1.5 semitones of an octave). Only true octave detection errors are corrected, not melodic jumps.

Link copied to clipboard

Reference pitch in Hz for octave correction (0 = auto-detect)

Link copied to clipboard

Smoothing filter window (must be odd)