subsOf method

List<int> subsOf(
  1. int level
)

Os subníveis do nível level neste treino: a a d nos acordes, no Hanon e nos níveis 1 a 20 da leitura; do 21 em diante, só o c e o d (sightSubsOf). O Hanon tem o e (o encadeado) do nº 2 em diante.

Implementation

List<int> subsOf(int level) => switch (this) {
  hanon => [for (var s = 0; s < hanonSubCount(level); s++) s],
  chords || chordEar || staffNotes || findKey => const [0, 1, 2, 3],
  music => const [0],
  _ => sightSubsOf(level),
};