Function fromMidi

  • Given a midi number, returns a note name. Uses flats for altered notes.

    Parameters

    • midi: number

      the midi note number

    Returns string

    the note name

    Function

    Example

    Note.fromMidi(61) // => "Db4"
    Note.fromMidi(61.7) // => "D4"