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
Properties
Events
public ReadOnlySpan<MidiMessage> Events { get; }
Property Value
Name
The name of this track.
public string Name { get; set; }
Property Value
Port
The MIDI port number used by the track.
public int Port { get; set; }
Property Value
Methods
Add(MidiMessage, int)
Adds an event to the track.
public void Add(MidiMessage msg, int index)
Parameters
msgMidiMessageThe event to add.
indexintThe 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
eventsReadOnlySpan<MidiMessage>The index at which to add these event.
indexintThe events to add.
Copy(Track)
public static Track Copy(Track track)
Parameters
trackTrack
Returns
DeleteEvent(int)
Removes an event from the track.
public void DeleteEvent(int index)
Parameters
indexintThe index of the event to remove.