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

Function fifth

mingus/core/intervals.py:114–125  ·  view source on GitHub ↗

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

(note, key)

Source from the content-addressed store, hash-verified

112
113
114def fifth(note, key):
115 """Take the diatonic fifth of note in key.
116
117 Raise a KeyError exception if the note is not found in the given key.
118
119 Examples:
120 >>> fifth('E', 'C')
121 'B'
122 >>> fifth('E', 'F')
123 'Bb'
124 """
125 return interval(key, note, 4)
126
127
128def sixth(note, key):

Callers 2

minor_fifthFunction · 0.85
major_fifthFunction · 0.85

Calls 1

intervalFunction · 0.85

Tested by

no test coverage detected