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

Function seventh

mingus/core/intervals.py:142–153  ·  view source on GitHub ↗

Take the diatonic seventh of note in key. Raise a KeyError exception if the note is not found in the given key. Examples: >>> seventh('E', 'C') 'D' >>> seventh('E', 'B') 'D#'

(note, key)

Source from the content-addressed store, hash-verified

140
141
142def seventh(note, key):
143 """Take the diatonic seventh of note in key.
144
145 Raise a KeyError exception if the note is not found in the given key.
146
147 Examples:
148 >>> seventh('E', 'C')
149 'D'
150 >>> seventh('E', 'B')
151 'D#'
152 """
153 return interval(key, note, 6)
154
155
156def minor_unison(note):

Callers 2

minor_seventhFunction · 0.70
major_seventhFunction · 0.70

Calls 1

intervalFunction · 0.85

Tested by

no test coverage detected