ContourCleanup

data class ContourCleanup(val fixOctaveErrors: Boolean = true, val fixBoundaryOctaves: Boolean = true, val boundaryWindowMs: Float = 50.0f, val minimumNoteDurationMs: Float = 80.0f, val smoothPitch: Boolean = false)

Post-processing cleanup options for pitch contours.

Applied after pitch detection to fix common artifacts.

Constructors

Link copied to clipboard
constructor(fixOctaveErrors: Boolean = true, fixBoundaryOctaves: Boolean = true, boundaryWindowMs: Float = 50.0f, minimumNoteDurationMs: Float = 80.0f, smoothPitch: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

How much of phrase edges to check for boundary octaves (ms)

Link copied to clipboard

Fix octave errors at phrase onset/offset

Link copied to clipboard

Fix mid-phrase frame-to-frame octave jumps

Link copied to clipboard

Minimum duration for valid pitch (removes blips)

Link copied to clipboard

Apply pitch smoothing filter