Class Track

Namespace
SpessaSharp.MIDI
Assembly
SpessaSharp.dll
public sealed class Track
Inheritance
Track
Inherited Members

Fields

Channels

A set that contains the MIDI channels used by the track in the sequence.

public readonly BitArray Channels

Field Value

BitArray

Properties

Events

public ReadOnlySpan<MidiMessage> Events { get; }

Property Value

ReadOnlySpan<MidiMessage>

Name

The name of this track.

public string Name { get; set; }

Property Value

string

Port

The MIDI port number used by the track.

public int Port { get; set; }

Property Value

int

Methods

Add(MidiMessage, int)

Adds an event to the track.

public void Add(MidiMessage msg, int index)

Parameters

msg MidiMessage

The event to add.

index int

The index at which to add this event.

Add(ReadOnlySpan<MidiMessage>, int)

Adds events to the track.

public void Add(ReadOnlySpan<MidiMessage> events, int index)

Parameters

events ReadOnlySpan<MidiMessage>

The index at which to add these event.

index int

The events to add.

Copy(Track)

public static Track Copy(Track track)

Parameters

track Track

Returns

Track

DeleteEvent(int)

Removes an event from the track.

public void DeleteEvent(int index)

Parameters

index int

The index of the event to remove.