Function sortedUniqNoteNames

  • Get sorted notes with duplicates removed. Pitch classes are listed before notes.

    Parameters

    • arr: string[]

    Returns string[]

    unique sorted notes

    Function

    Example

    Array.sortedUniqNoteNames(['a', 'b', 'c2', '1p', 'p2', 'c2', 'b', 'c', 'c3' ])
    // => [ 'C', 'A', 'B', 'C2', 'C3' ]