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

Function third

mingus/core/intervals.py:86–97  ·  view source on GitHub ↗

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

(note, key)

Source from the content-addressed store, hash-verified

84
85
86def third(note, key):
87 """Take the diatonic third of note in key.
88
89 Raise a KeyError exception if the note is not found in the given key.
90
91 Examples:
92 >>> third('E', 'C')
93 'G'
94 >>> third('E', 'E')
95 'G#'
96 """
97 return interval(key, note, 2)
98
99
100def fourth(note, key):

Callers 2

minor_thirdFunction · 0.85
major_thirdFunction · 0.85

Calls 1

intervalFunction · 0.85

Tested by

no test coverage detected