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

Function fourth

mingus/core/intervals.py:100–111  ·  view source on GitHub ↗

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

(note, key)

Source from the content-addressed store, hash-verified

98
99
100def fourth(note, key):
101 """Take the diatonic fourth of note in key.
102
103 Raise a KeyError exception if the note is not found in the given key.
104
105 Examples:
106 >>> fourth('E', 'C')
107 'A'
108 >>> fourth('E', 'B')
109 'A#'
110 """
111 return interval(key, note, 3)
112
113
114def fifth(note, key):

Callers 2

minor_fourthFunction · 0.85
major_fourthFunction · 0.85

Calls 1

intervalFunction · 0.85

Tested by

no test coverage detected