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

Function second

mingus/core/intervals.py:72–83  ·  view source on GitHub ↗

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

(note, key)

Source from the content-addressed store, hash-verified

70
71
72def second(note, key):
73 """Take the diatonic second of note in key.
74
75 Raise a KeyError exception if the note is not found in the given key.
76
77 Examples:
78 >>> second('E', 'C')
79 'F'
80 >>> second('E', 'D')
81 'F#'
82 """
83 return interval(key, note, 1)
84
85
86def third(note, key):

Callers 2

minor_secondFunction · 0.85
major_secondFunction · 0.85

Calls 1

intervalFunction · 0.85

Tested by

no test coverage detected