Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MetronomeCallbackObject

An abstract base class for providing arbitrary callbacks for the metronome.

Hierarchy

  • MetronomeCallbackObject

Index

Methods

Methods

Abstract bar

  • bar(time: number, index: number): void
  • Will be called for every bar that has clicked.

    Parameters

    • time: number

      The offset time from the metronome's start.

    • index: number

      The index of the bar (0 <= index).

    Returns void

Abstract click

  • click(time: number, index: number): void
  • Will be called for every audible click made. There will be clicksPerQuarter of this callback for every quarter() callback.

    Parameters

    • time: number

      The offset time from the metronome's start.

    • index: number

      The index of the click in the bar (0 <= index < 4 * clicksPerQuarter).

    Returns void

Abstract quarter

  • quarter(time: number, index: number): void
  • Will be called for every quarter note that has clicked. There will be 4 of this callback for every bar() callback.

    Parameters

    • time: number

      The offset time from the metronome's start.

    • index: number

      The index of the quarter in the bar (0 <= index < 4).

    Returns void

Generated using TypeDoc