Documentation
    Preparing search index...
    Index
    • Creates a Player instance.

      Parameters

      Returns Player

    • Clears all event listeners and future playback scheduled events.

      Returns void

    • Returns the current transport bpm value.

      Returns number

      The bpm value.

    • Returns the current score.

      Returns Score | null

      The current score.

    • Pauses playback.

      Returns this

      The current Player instance.

    • Starts playback.

      Returns Promise<Player | undefined>

      The current Player instance.

    • Seeks playback to the passed position.

      Parameters

      • position: `${number}:${number}:${number}`

        The new position.

      Returns this

      The current Player instance.

    • Sets the current transport bpm value.

      Parameters

      • value: number

        The new bpm value.

      Returns void

      Value must be in the ${BPM_RANGE} range, received ${value} instead if the passed value is not the BPM range.

    • Sets the current score.

      Parameters

      • score: Score | null

        The score to be set.

      Returns this

      The current Player instance.

    • Stops playback.

      Returns this

      The current Player instance.