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

Function relative_minor

mingus/core/keys.py:156–166  ·  view source on GitHub ↗

Return the relative minor of a major key. Example: >>> relative_minor('C') 'a'

(key)

Source from the content-addressed store, hash-verified

154
155
156def relative_minor(key):
157 """Return the relative minor of a major key.
158
159 Example:
160 >>> relative_minor('C')
161 'a'
162 """
163 for couple in keys:
164 if key == couple[0]:
165 return couple[1]
166 raise NoteFormatError("'%s' is not a major key" % key)
167
168
169class Key(object):

Callers

nothing calls this directly

Calls 1

NoteFormatErrorClass · 0.90

Tested by

no test coverage detected