Search Results for

    Show / Hide Table of Contents

    Class InstrumentNameEvent

    Represents an Instrument Name meta event.
    Inheritance
    object
    MidiEvent
    MetaEvent
    BaseTextEvent
    InstrumentNameEvent
    Inherited Members
    BaseTextEvent.Text
    MetaEvent.GetStandardMetaEventStatusBytes()
    MidiEvent.UnknownContentSize
    MidiEvent.EventType
    MidiEvent.DeltaTime
    MidiEvent.Clone()
    MidiEvent.Equals(MidiEvent, MidiEvent)
    MidiEvent.Equals(MidiEvent, MidiEvent, out string)
    MidiEvent.Equals(MidiEvent, MidiEvent, MidiEventEqualityCheckSettings)
    MidiEvent.Equals(MidiEvent, MidiEvent, MidiEventEqualityCheckSettings, out string)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Melanchall.DryWetMidi.Core
    Assembly: Melanchall.DryWetMidi.dll
    Syntax
    public sealed class InstrumentNameEvent : BaseTextEvent
    Remarks
    The MIDI instrument name meta message shows the name of the instrument used in the current track. This optional event is used to provide a textual clue regarding the intended instrumentation for a track (e.g. 'Piano' or 'Flute', etc). If used, it is recommended to place this event near the start of a track.

    Constructors

    InstrumentNameEvent()

    Initializes a new instance of the InstrumentNameEvent.
    Declaration
    public InstrumentNameEvent()

    InstrumentNameEvent(string)

    Initializes a new instance of the InstrumentNameEvent with the specified instrument name.
    Declaration
    public InstrumentNameEvent(string instrumentName)
    Parameters
    Type Name Description
    string instrumentName Name of the instrument.

    Methods

    CloneEvent()

    Clones event by creating a copy of it.
    Declaration
    protected override MidiEvent CloneEvent()
    Returns
    Type Description
    MidiEvent Copy of the event.
    Overrides
    MidiEvent.CloneEvent()

    ToString()

    Returns a string that represents the current object.
    Declaration
    public override string ToString()
    Returns
    Type Description
    string A string that represents the current object.
    Overrides
    object.ToString()
    In this article
    Back to top 2024 / Generated by DocFX