Hiyve Components - v1.0.0
    Preparing search index...
    • Turn the bytes of one Web MIDI message into a MidiEvent.

      System messages (status ≥ 0xF0 — clock, active sensing, SysEx) return null; they carry nothing a take needs and the clock ones arrive many times a second. A note-on with velocity 0 becomes a noteOff.

      Parameters

      • data: Uint8Array<ArrayBufferLike> | readonly number[]

        The message bytes as delivered by MIDIMessageEvent.data

      • timeMs: number

        Take-clock time to stamp on the event

      Returns MidiEvent | null

      The parsed event, or null for messages a take does not record