LessonMaterial

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

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)

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
Link copied to clipboard

Number of segments

Link copied to clipboard