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

Function is_enharmonic

mingus/core/notes.py:64–66  ·  view source on GitHub ↗

Test whether note1 and note2 are enharmonic, i.e. they sound the same.

(note1, note2)

Source from the content-addressed store, hash-verified

62
63
64def is_enharmonic(note1, note2):
65 """Test whether note1 and note2 are enharmonic, i.e. they sound the same."""
66 return note_to_int(note1) == note_to_int(note2)
67
68
69def is_valid_note(note):

Callers

nothing calls this directly

Calls 1

note_to_intFunction · 0.85

Tested by

no test coverage detected