degreeChord function

ChordSymbol degreeChord(
  1. String degree,
  2. Pitch tonic
)

A cifra de degree no tom maior tonic.

Implementation

ChordSymbol degreeChord(String degree, Pitch tonic) =>
    ChordDegree.parse(degree)!.inKey(
      KeySpec(tonic: pcOf(tonic), minor: false, spelling: spellingOf(tonic)),
    );