Session State
data class SessionState(val phase: SessionPhase = SessionPhase.IDLE, val activeSegmentIndex: Int? = null, val activeSegment: Segment? = null, val currentPitch: Float = -1f, val currentAmplitude: Float = 0.0f, val segmentProgress: Float = 0.0f, val completedSegments: Set<Int> = emptySet(), val error: String? = null)
Current state of a CalibraLiveEval.
Properties
Link copied to clipboard
The segment being practiced, or null if none
Link copied to clipboard
Index of segment being practiced, or null if none
Link copied to clipboard
True if session is ready to start or between segments
Link copied to clipboard
Number of completed segments
Link copied to clipboard
Set of segment indices that have been completed
Link copied to clipboard
Current audio amplitude (0.0 - 1.0)
Link copied to clipboard
Current detected pitch in Hz (-1 for unvoiced)
Link copied to clipboard
True if session is finished (completed or cancelled)
Link copied to clipboard
True if session is actively practicing
Link copied to clipboard
Current phase of the session
Link copied to clipboard
Progress through current segment (0.0 - 1.0)