Class BeatRepeatArgs

An instance of BeatRepeatArgs is generated by a Repeat object with finite running time, to be passed into its action callback. The BeatRepeatArgs class provides information about how long a repeat has been running, how far through repeat's lifetime we are, and how many beats have passed since the repeat was started.

Hierarchy

Constructors

Accessors

Constructors

  • Parameters

    • ms: number

      How many milliseconds the repeat has been running for.

    • beat: number

      How many beats have passed since the repeat started.

    • percent: number

      A number ranging from 0 to 1, signifying how far through a repeat's lifetime we are.

    Returns BeatRepeatArgs

Accessors

  • get beat(): number
  • How many beats have passed since the repeat started.

    Returns number

  • get ms(): number
  • How many milliseconds the repeat has been running for.

    Returns number

  • get percent(): number
  • A number ranging from 0 to 1, signifying how far through a repeat's lifetime we are.

    Returns number

Generated using TypeDoc