Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseRecorderCallback

An abstract base class for providing arbitrary callbacks for each note recorded.

Hierarchy

  • BaseRecorderCallback

Index

Methods

Methods

Abstract noteOff

  • noteOff(pitch: number, velocity: number, device: EventTarget): void
  • Will be called for each time a note off event is observed.

    Parameters

    • pitch: number

      The pitch of the midi event received.

    • velocity: number

      The velocity of the midi event received.

    • device: EventTarget

      The device the midi event was received from.

    Returns void

Abstract noteOn

  • noteOn(pitch: number, velocity: number, device: EventTarget): void
  • Will be called for each time a note on event is observed.

    Parameters

    • pitch: number

      The pitch of the midi event received.

    • velocity: number

      The velocity of the midi event received.

    • device: EventTarget

      The device the midi event was received from.

    Returns void

Abstract run

  • run(seq: NoteSequence): void
  • Will be called for each time a note is recorded.

    Parameters

    • seq: NoteSequence

      The note sequence up to this point.

    Returns void

Generated using TypeDoc