ExercisePattern

data class ExercisePattern(val noteFrequencies: List<Float>, val noteDurations: List<Int>, val notesPerLoop: Int = noteFrequencies.size, val noteStartsMs: List<Int>? = null)

Pattern for exercise evaluation (scales, arpeggios, etc.).

Constructors

Link copied to clipboard
constructor(noteFrequencies: List<Float>, noteDurations: List<Int>, notesPerLoop: Int = noteFrequencies.size, noteStartsMs: List<Int>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Number of notes in the pattern

Link copied to clipboard

Duration in milliseconds for each note

Link copied to clipboard

Frequencies in Hz for each note in the pattern

Link copied to clipboard

Number of notes per loop/cycle (for repeating patterns)

Link copied to clipboard

Explicit note-start offsets in ms on the take's playback timeline. Null (default) lays notes contiguously from t=0. Explicit starts let the pattern express a lead-in and inter-note gaps (rests are gaps, not notes) — see fromNotes.

Link copied to clipboard

Total duration of the pattern in milliseconds (sum of note durations, gaps excluded)