enharmonic

pitchtools.enharmonic(notename)[source]

Returns the enharmonic variant of notename

For simplicity, we considere a possible enharmonic variant a note with the same sounding pitch and an alteration smaller than 150 cents from the note without any alteration (no double sharps or flats). Also not accepted are enharmonics like Fb or E#

Parameters:

notename (str) – the note to find an enharmonic variant to

Return type:

str

Returns:

either the enharmonic variant or the note itself

Note

Enharmonic

Has Enharmonic?

4#

4Db

4C+

4Db-

4E

4E

4E#

4F

4A+10

4A+10

4E-25

4E-25

4E-

4D#+

See also

transpose()