Companion

object Companion

Functions

Link copied to clipboard
fun fromMidiNotes(midiNotes: List<Int>, noteDurationMs: Int = 500): ExercisePattern

Create pattern from MIDI note numbers.

Link copied to clipboard
fun fromNotes(freqsHz: List<Float>, startsMs: List<Int>, endsMs: List<Int>): ExercisePattern

Create a pattern whose notes sit at explicit windows on the take's playback timeline — the shape real lessons have (a lead-in before the first note, gaps/rests between notes). The evaluator scores each note only against the student audio inside its own window; audio in the gaps is not evaluated.

Link copied to clipboard
fun scale(frequencies: List<Float>, noteDurationMs: Int = 500): ExercisePattern

Create a simple scale pattern from frequencies.