hanonOctavesSpell function

Pitch hanonOctavesSpell(
  1. int degree,
  2. int midi
)

A nota do grau degree com a altura midi: o sustenido ou o bemol é o que falta entre os dois.

Implementation

Pitch hanonOctavesSpell(int degree, int midi) {
  final natural = hanonPitch(degree);
  return Pitch(natural.step, midi - natural.midi, natural.octave);
}