Class Part

This class starts and stops each MML part.

Constructors

Properties

currentIndex: number = 0
currentPosition: number = 0
mml: string
offset: number = 0
previous: null | Sequence = null
scheduleWorker: null | Worker = null
sequences: Sequence[] = []
syntaxTree: string

Methods

  • This method is getter for current sequence index.

    Returns number

  • This method is getter for MML string.

    Returns string

  • This method is getter for string that represents MML syntax tree.

    Returns string

  • This method determines whether sequence exists.

    Returns boolean

    If sequence exists, this value is true. Otherwise, this value is false.

  • This method determines whether MML part is paused.

    Returns boolean

    If MML part are paused, this value is true. Otherwise, this value is false.

  • This method is setter for current sequence index.

    Parameters

    • index: number

      This argument is new sequence index.

    Returns void

  • This method starts MML. Moreover, this method schedules next sequence.

    Parameters

    • highlight: boolean

      This argument is true in case of surrounding by span.x-highlight HTML.

    Returns void

  • Parameters

    • sequence: Sequence
    • Optional offset: number

    Returns void

  • Parameters

    • sequence: Sequence
    • Optional offset: number

    Returns void

Generated using TypeDoc