HistogramConfig

data class HistogramConfig(val numBins: Int? = null, val density: Boolean = true, val foldOctaves: Boolean = false, val mode: HistogramMode = HistogramMode.DURATION, val smoothSigma: Float? = 5.0f)

Configuration for pitch histogram computation.

See also

PitchAnalysis.computeHistogram

Constructors

Link copied to clipboard
constructor(numBins: Int? = null, density: Boolean = true, foldOctaves: Boolean = false, mode: HistogramMode = HistogramMode.DURATION, smoothSigma: Float? = 5.0f)

Types

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

Properties

Link copied to clipboard

If true, normalize so area = 1 (probability density).

Link copied to clipboard

If true, fold all pitches into a single octave (0–1200 cents).

Link copied to clipboard
Link copied to clipboard
val numBins: Int?

Number of histogram bins. null = auto-select from range.

Link copied to clipboard

Gaussian smoothing sigma in cents. null = no smoothing. Default is 5f (smoothing ON); use RAW preset for no smoothing.