spessasynth_lib documentation
    Preparing search index...

    Class SeqEventHandler

    The Sequencer supports event handling. For example, the lyrics window in the SpessaSynth web app uses it to show lyrics in real time.

    It is accessible via the Sequencer.eventHandler property.

    Event types can be found in LibSequencerEvent.

    Hierarchy

    Index
    timeDelay: number = 0

    The time delay before an event is called, in seconds. Set to 0 to disable it.

    • Adds a new event listener.

      Type Parameters

      Parameters

      • event: T

        The event type to listen for.

      • id: string

        The unique identifier for the event. It can be used to overwrite an existing callback with the same ID.

      • callback: (callbackData: LibSequencerEvent[T]) => unknown

        The callback for the event.

      Returns void

    • Removes an event listener.

      Type Parameters

      Parameters

      • event: T

        The event type to remove a listener from.

      • id: string

        The unique identifier for the event to remove.

      Returns void