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

Function sixth

mingus/core/intervals.py:128–139  ·  view source on GitHub ↗

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

(note, key)

Source from the content-addressed store, hash-verified

126
127
128def sixth(note, key):
129 """Take the diatonic sixth of note in key.
130
131 Raise a KeyError exception if the note is not found in the given key.
132
133 Examples:
134 >>> sixth('E', 'C')
135 'C'
136 >>> sixth('E', 'B')
137 'C#'
138 """
139 return interval(key, note, 5)
140
141
142def seventh(note, key):

Callers 2

minor_sixthFunction · 0.85
major_sixthFunction · 0.85

Calls 1

intervalFunction · 0.85

Tested by

no test coverage detected