ReferenceExtractorConfig

data class ReferenceExtractorConfig(val sampleRate: Int = 16000, val frameSize: Int = 1024, val hopSize: Int = 320, val hpcpSize: Int = 12)

Configuration for com.musicmuni.voxatrace.calibra.ReferenceExtractor (ADR-001: companion presets + Builder + .copy()).

Geometry must match the consuming live session

Live evaluation indexes pre-computed HPCP frames by absolute frame number at hopSize / sampleRate. For the pre-computed HPCP to line up, hopSize, frameSize, and sampleRate must match the SessionConfig the bundle is played back with. The defaults match the SDK's live defaults (16 kHz, 1024-sample frames, 320-sample hop).

The pre-computed pitch contour is produced by the injected contour extractor and is looked up by time (not frame index), so its own hop does not need to match — only the HPCP geometry does.

Constructors

Link copied to clipboard
constructor(sampleRate: Int = 16000, frameSize: Int = 1024, hopSize: Int = 320, hpcpSize: Int = 12)

Types

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

Properties

Link copied to clipboard

HPCP analysis frame size in samples.

Link copied to clipboard

Hop between HPCP frames in samples; must match the consuming live session's hop.

Link copied to clipboard

Chroma bins per frame (12 = one per semitone).

Link copied to clipboard

Working sample rate; Calibra requires 16000.