MCPcopy Create free account
hub / github.com/bspaans/python-mingus / tonic

Function tonic

mingus/core/chords.py:571–580  ·  view source on GitHub ↗

Return the tonic chord in key. Examples: >>> tonic('C') ['C', 'E', 'G'] >>> tonic('c') ['C', 'Eb', 'G']

(key)

Source from the content-addressed store, hash-verified

569
570
571def tonic(key):
572 """Return the tonic chord in key.
573
574 Examples:
575 >>> tonic('C')
576 ['C', 'E', 'G']
577 >>> tonic('c')
578 ['C', 'Eb', 'G']
579 """
580 return triads(key)[0]
581
582
583def tonic7(key):

Callers 1

IFunction · 0.85

Calls 1

triadsFunction · 0.85

Tested by

no test coverage detected