Type alias Note

Note: {
    duration: DOMHighResTimeStamp;
    frequency: number;
    rawAttack?: number;
    rawRelease?: number;
    time: DOMHighResTimeStamp | string;
}

Free-pitch MIDI note to be played at a later time.

Type declaration

  • duration: DOMHighResTimeStamp

    Note duration in milliseconds (ms).

  • frequency: number

    Frequency in Hertz (Hz)

  • Optional rawAttack?: number

    Attack velocity from 0 to 127.

  • Optional rawRelease?: number

    Release velocity from 0 to 127.

  • time: DOMHighResTimeStamp | string

    Note-on time in milliseconds (ms) as measured by WebMidi.time. If time is a string prefixed with "+" and followed by a number, the message will be delayed by that many milliseconds.