Class Cue

The Cue class contains static methods for slightly more nice and intuitive creation of cues.

Hierarchy

  • Cue

Constructors

Methods

Constructors

Methods

  • Creates a new instance of BeatCue.

    Returns

    Parameters

    • metronome: IMetronome

      The metronome to use for counting beats.

    • beatCount: number

      The number of beats to wait before performing some action.

    • action: (() => void)

      The action to perform once the cue has finished waiting.

        • (): void
        • Returns void

    Returns BeatCue

  • Creates a new instance of MsCue.

    Returns

    Parameters

    • msCount: number

      The number of milliseconds to wait before performing some action.

    • action: (() => void)

      The action to perform once the cue has finished waiting.

        • (): void
        • Returns void

    Returns MsCue

  • Creates a new instance of ConditionalCue.

    Returns

    Parameters

    • condition: (() => boolean)

      The condition which must be satisfied before performing some action.

        • (): boolean
        • Returns boolean

    • action: (() => void)

      The action to perform once the cue has finished waiting.

        • (): void
        • Returns void

    Returns ConditionalCue

Generated using TypeDoc