ActiveSegmentState

data class ActiveSegmentState(val segmentIndex: Int, val segment: Segment, val currentPitch: Float, val currentAmplitude: Float, val elapsedSeconds: Float, val isCapturing: Boolean)

State of the currently active segment during practice.

Constructors

Link copied to clipboard
constructor(segmentIndex: Int, segment: Segment, currentPitch: Float, currentAmplitude: Float, elapsedSeconds: Float, isCapturing: Boolean)

Properties

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

Time elapsed since segment started

Link copied to clipboard

True if detected pitch is valid

Link copied to clipboard

Whether audio is currently being captured

Link copied to clipboard

Progress through the segment (0.0 - 1.0)

Link copied to clipboard

Time remaining in seconds

Link copied to clipboard

The segment being practiced

Link copied to clipboard

Index of the segment