TargetInterval

data class TargetInterval(val cents: Float, val label: String)

A single target interval the user is grading against, with the label that should appear in the per-note breakdown.

Pass a list of these to com.musicmuni.voxatrace.accura.Accura.analyzePitching via scaleIntervals when the caller knows the exact intervals and labels of the scale (e.g. a raaga file with multi-octave svaras and tradition-specific symbols). When scaleIntervals is null, Accura falls back to the full 12-TET / JI multi-octave grid and derives chromatic labels itself.

The label is used verbatim — Accura does not re-derive it from the cents value. Use this to keep the per-note result consistent with whatever label the caller shows elsewhere in its UI (e.g. a pitch grid).

Constructors

Link copied to clipboard
constructor(cents: Float, label: String)

Properties

Link copied to clipboard

Interval in cents relative to the tonic. Multi-octave values are allowed (e.g. 1200f for an octave-up Sa).

Link copied to clipboard

Display label for this interval (e.g. "Sa", "Ṡ", "G3", "F#4").