Function enharmonic

  • Get enharmonic of a note

    Parameters

    • noteName: string
    • Optional destName: string

    Returns string

    the enharmonic note name or '' if not valid note

    Function

    Example

    Note.enharmonic("Db") // => "C#"
    Note.enharmonic("C") // => "C"
    Note.enharmonic("F2","E#") // => "E#2"