spessasynth_lib documentation
    Preparing search index...

    Class MIDIDataTrack

    A simplified version of the MIDITrack, accessible at all times from the Sequencer. This data does not contain any events.

    Hierarchy

    • MIDITrack
      • MIDIDataTrack
    Index
    channels: Set<number>

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

    events: never[] = []

    THIS DATA WILL BE EMPTY! USE Sequencer.getMIDI TO GET THE ACTUAL DATA!

    name: string

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

    port: number

    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

    • Copies a MIDITrack into this track.

      Parameters

      • track: MIDITrack

        The track to copy.

      Returns void

    • Removes an event from the track.

      Parameters

      • index: number

        The index of the event to remove.

      Returns void

    • Appends events to the end of the track.

      Parameters

      • ...events: MIDIMessage[]

        The events to add.

      Returns void

    • Creates a copy of a MIDITrack.

      Parameters

      • track: MIDITrack

        The track to copy.

      Returns MIDITrack

      The new copy.