generateHanonOctaveScales function

HanonPiece generateHanonOctaveScales(
  1. HanonOctaveScalesExercise ex,
  2. int tone
)

O tom tone (0 a 23) do nº 53: a escala em oitavas, duas mãos, 2 compassos.

Implementation

HanonPiece generateHanonOctaveScales(HanonOctaveScalesExercise ex, int tone) {
  final t = hanonOctaveScaleTones[tone];
  return HanonPiece(
    sections: [
      HanonSection(hanonByBeat(_hand(t, right: true), _hand(t, right: false))),
    ],
    time: ex.time,
    key: t.key,
    octaveShifts: [
      if (t.rightShift != null) hanonOctaveRunShift(t.rightShift!, staff: 1),
      if (t.leftShift != null) hanonOctaveRunShift(t.leftShift!, staff: 2),
    ],
  );
}