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

Function unison

mingus/core/intervals.py:57–69  ·  view source on GitHub ↗

Return the unison of note. Raise a KeyError exception if the note is not found in the given key. The key is not at all important, but is here for consistency reasons only. Example: >>> unison('C') 'C'

(note, key=None)

Source from the content-addressed store, hash-verified

55
56
57def unison(note, key=None):
58 """Return the unison of note.
59
60 Raise a KeyError exception if the note is not found in the given key.
61
62 The key is not at all important, but is here for consistency reasons
63 only.
64
65 Example:
66 >>> unison('C')
67 'C'
68 """
69 return interval(note, note, 0)
70
71
72def second(note, key):

Callers

nothing calls this directly

Calls 1

intervalFunction · 0.85

Tested by

no test coverage detected