spessasynth_core documentation
    Preparing search index...

    Class MIDITrack

    This class represents a single MIDI track in a BasicMIDI sequence.

    Index
    channels: Set<number> = ...

    A set that contains the MIDI channel numbers used by this track.

    events: Omit<MIDIMessage[], "push" | "splice" | "shift" | "unshift"> = []

    All the MIDI messages of this track, ordered by their tick time.

    name: string = ""

    The name of this track. Empty if the track has no name.

    port: number = 0

    The MIDI port number used by the track. Will be 0 for non-Multi-Port MIDIs.

    • Adds events to the track.

      Parameters

      • index: number

        The index at which to add these event.

      • ...events: MIDIMessage[]

        The events to add.

      Returns void

    • Removes an event from the track.

      Parameters

      • index: number

        The index of the event to remove.

      Returns void