Pattern: PKeyTonic
Given a Key as an input, returns the tonic of that key.
Example output
>>> p = PKeyTonic(PChoice([Key("C", "major"),
Key("F", "minor"),
Key("G", "major")]))
>>> p.nextn(16)
[0, 5, 0, 0, 5, 5, 0, 5, 7, 0, 5, 0, 5, 0, 7, 5]
Given a Key as an input, returns the tonic of that key.
>>> p = PKeyTonic(PChoice([Key("C", "major"),
Key("F", "minor"),
Key("G", "major")]))
>>> p.nextn(16)
[0, 5, 0, 0, 5, 5, 0, 5, 7, 0, 5, 0, 5, 0, 7, 5]