Post Process
Post-processing utilities for pitch arrays.
Use this for processing entire pitch contours (e.g., from recorded audio). For realtime processing, use Detector with enableProcessing = true.
Usage:
val rawPitches = floatArrayOf(440f, 442f, 880f, 438f) // Has octave error
// Full processing
val processed = CalibraPitch.PostProcess.process(rawPitches)
// Individual operations
val smoothed = CalibraPitch.PostProcess.smooth(rawPitches)
val corrected = CalibraPitch.PostProcess.correctOctaveErrors(rawPitches)
val filtered = CalibraPitch.PostProcess.medianFilter(rawPitches)Functions
Apply cleanup options to a pitch contour.
Correct octave errors at phrase boundaries (onset/offset).
Apply octave error correction only.
Fix boundary octave errors in a pitch contour.
Fix octave errors in a pitch contour.
Apply median filter for spike removal.
Process a pitch contour with smoothing and octave correction using default settings.
Process a pitch contour with configurable smoothing and octave correction.
Reject short pitch runs (blips) based on minimum duration.
Remove short pitch runs (blips) from a contour.
Apply smoothing to a pitch contour.
Apply smoothing filter only.