process

fun process(contour: PitchContour, config: PitchProcessingConfig = PitchProcessingConfig.DISPLAY): PitchContour

Process a pitch contour with preset or custom config.

Extracts the pitch array, runs the full pipeline (octave correction → blip removal → smoothing), and rebuilds the contour.

Return

Processed pitch contour with metadata preserved

Parameters

contour

Input pitch contour

config

Processing configuration


fun process(pitchesHz: FloatArray, config: PitchProcessingConfig = PitchProcessingConfig.DISPLAY): FloatArray

Process a pitch array with preset or custom config.

Pipeline order: octave correction → blip removal → smoothing. Each stage skipped if disabled in config.

Return

Processed pitch values in Hz

Parameters

pitchesHz

Pitch values in Hz (-1 for unvoiced)

config

Processing configuration