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

Function triad

mingus/core/chords.py:168–177  ·  view source on GitHub ↗

Return the triad on note in key as a list. Examples: >>> triad('E', 'C') ['E', 'G', 'B'] >>> triad('E', 'B') ['E', 'G#', 'B']

(note, key)

Source from the content-addressed store, hash-verified

166
167
168def triad(note, key):
169 """Return the triad on note in key as a list.
170
171 Examples:
172 >>> triad('E', 'C')
173 ['E', 'G', 'B']
174 >>> triad('E', 'B')
175 ['E', 'G#', 'B']
176 """
177 return [note, intervals.third(note, key), intervals.fifth(note, key)]
178
179
180def triads(key):

Callers 2

triadsFunction · 0.85
seventhFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected