LessonMaterial

data class LessonMaterial(val audioSource: AudioSource, val segments: List<Segment>, val keyHz: Float, val pitchContour: PitchContour? = null, val hpcpFrames: List<FloatArray>? = null, val lessonType: LessonType = LessonType.SINGALONG)

Reference material for singing evaluation.

Contains the reference audio, segment boundaries, and musical key. Optionally includes pre-computed pitch contour and HPCP frames for fast initialization.

Constructors

Link copied to clipboard
constructor(audioSource: AudioSource, segments: List<Segment>, keyHz: Float, pitchContour: PitchContour? = null, hpcpFrames: List<FloatArray>? = null, lessonType: LessonType = LessonType.SINGALONG)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Total duration based on the last segment's end time

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

How the student performs relative to the reference. The session's phase machine and reference-time mapping key on this — the lesson-level authority — never on per-segment field presence. Segments carry the student-window timing; this says what that timing means.

Link copied to clipboard
Link copied to clipboard

Number of segments

Link copied to clipboard