generateHanonPivot function

HanonPiece generateHanonPivot(
  1. HanonPivotExercise ex
)

Monta o nº 31: A (14 compassos e a nota longa) e B (14 compassos e o acorde), sem barra de repetição e cada metade num trecho.

Implementation

HanonPiece generateHanonPivot(HanonPivotExercise ex) {
  final a = [
    ..._bars(
      above: false,
      rightStart: ex.rightPivotA,
      leftStart: ex.leftPivotA,
      fingers: ex.fingersA,
    ),
    ...hanonByBeat(
      _hold([ex.rightHoldA], _dottedHalf, right: true),
      _hold([ex.leftHoldA], _dottedHalf, right: false, shownStaff: 1),
    ),
  ];
  final b = [
    ..._bars(
      above: true,
      rightStart: ex.rightPivotB,
      leftStart: ex.leftPivotB,
      fingers: ex.fingersB,
    ),
    ...hanonByBeat(
      _hold(ex.rightFinal, _half, right: true, shownStaff: 2),
      _hold(ex.leftFinal, _half, right: false),
    ),
  ];
  return HanonPiece(
    sections: [HanonSection(a), HanonSection(b)],
    time: ex.time,
  );
}