majorFifthsOf function

int majorFifthsOf(
  1. String tonic
)

A armadura (quintas) do tom maior de tônica tonic (C, Bb, F#).

Implementation

int majorFifthsOf(String tonic) {
  final alter = tonic.length > 1 ? (tonic[1] == '#' ? 1 : -1) : 0;
  return _stepFifths[tonic[0]]! + 7 * alter;
}