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

Function is_valid_note

mingus/core/notes.py:69–76  ·  view source on GitHub ↗

Return True if note is in a recognised format. False if not.

(note)

Source from the content-addressed store, hash-verified

67
68
69def is_valid_note(note):
70 """Return True if note is in a recognised format. False if not."""
71 if note[0] not in _note_dict:
72 return False
73 for post in note[1:]:
74 if post != "b" and post != "#":
75 return False
76 return True
77
78
79def note_to_int(note):

Callers 1

note_to_intFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected