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

Function triads

mingus/core/chords.py:180–189  ·  view source on GitHub ↗

Return all the triads in key. Implemented using a cache.

(key)

Source from the content-addressed store, hash-verified

178
179
180def triads(key):
181 """Return all the triads in key.
182
183 Implemented using a cache.
184 """
185 if key in _triads_cache:
186 return _triads_cache[key]
187 res = [triad(x, key) for x in keys.get_notes(key)]
188 _triads_cache[key] = res
189 return res
190
191
192def major_triad(note):

Callers 7

tonicFunction · 0.85
supertonicFunction · 0.85
mediantFunction · 0.85
subdominantFunction · 0.85
dominantFunction · 0.85
submediantFunction · 0.85
subtonicFunction · 0.85

Calls 2

triadFunction · 0.85
get_notesMethod · 0.80

Tested by

no test coverage detected