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

Function is_valid_key

mingus/core/keys.py:58–63  ·  view source on GitHub ↗

Return True if key is in a recognized format. False if not.

(key)

Source from the content-addressed store, hash-verified

56
57
58def is_valid_key(key):
59 """Return True if key is in a recognized format. False if not."""
60 for couple in keys:
61 if key in couple:
62 return True
63 return False
64
65
66def get_key(accidentals=0):

Callers 2

get_key_signatureFunction · 0.85
get_notesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected