PeakDetectionConfig

data class PeakDetectionConfig(val method: String = "hybrid", val peakAmpThresh: Float = 5.0E-5f, val valleyThresh: Float = 3.0E-5f, val lookahead: Int = 20, val avgIntervalHint: Float? = null, val minPeakAreaFraction: Float = 0.0f)

Configuration for peak detection in a pitch histogram.

See also

Constructors

Link copied to clipboard
constructor(method: String = "hybrid", peakAmpThresh: Float = 5.0E-5f, valleyThresh: Float = 3.0E-5f, lookahead: Int = 20, avgIntervalHint: Float? = null, minPeakAreaFraction: Float = 0.0f)

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Optional hint for expected interval spacing (cents).

Link copied to clipboard

Lookahead window for slope-based detection.

Link copied to clipboard

Detection method: "hybrid" (default), "slope", or "interval".

Link copied to clipboard

Relative-prominence gate: a peak whose integrated valley-to-valley histogram area is below this fraction of the largest peak's area is dropped as a transient (a note merely passed through, not dwelt on). 0f (default) disables the gate, leaving detection behaviour unchanged.

Link copied to clipboard

Minimum amplitude for a peak to be accepted.

Link copied to clipboard

Minimum valley depth between peaks.