Segment Result
data class SegmentResult(val segment: Segment, val score: Float, val pitchAccuracy: Float = score, val level: PerformanceLevel = PerformanceLevel.fromScore(score), val attemptNumber: Int = 1, val referencePitch: PitchContour = PitchContour.EMPTY, val studentPitch: PitchContour = PitchContour.EMPTY)
Result of evaluating a single segment.
Constructors
Link copied to clipboard
constructor(segment: Segment, score: Float, pitchAccuracy: Float = score, level: PerformanceLevel = PerformanceLevel.fromScore(score), attemptNumber: Int = 1, referencePitch: PitchContour = PitchContour.EMPTY, studentPitch: PitchContour = PitchContour.EMPTY)
Properties
Link copied to clipboard
Which attempt this is (1-based, for retry tracking)
Link copied to clipboard
Human-readable feedback message based on performance level.
Link copied to clipboard
True if score is excellent (>= 0.9)
Link copied to clipboard
Performance level classification
Link copied to clipboard
Pitch accuracy component of the score (0.0 - 1.0)
Link copied to clipboard
Reference pitch contour with times and Hz values (for visualization)
Link copied to clipboard
Score as a percentage (0-100)
Link copied to clipboard
Student pitch contour with times and Hz values (for visualization)