Class DeviceNameEvent
Represents a Device Name meta event.
Inherited Members
Namespace: Melanchall.DryWetMidi.Core
Assembly: Melanchall.DryWetMidi.dll
Syntax
public sealed class DeviceNameEvent : BaseTextEvent
Remarks
This optional event is used to identify the hardware device used to produce
sounds for this track.
Constructors
DeviceNameEvent()
Initializes a new instance of the DeviceNameEvent.
Declaration
public DeviceNameEvent()
DeviceNameEvent(string)
Initializes a new instance of the DeviceNameEvent with the
specified device name.
Declaration
public DeviceNameEvent(string deviceName)
Parameters
Type | Name | Description |
---|---|---|
string | deviceName | Name of the device. |
Methods
CloneEvent()
Clones event by creating a copy of it.
Declaration
protected override MidiEvent CloneEvent()
Returns
Type | Description |
---|---|
MidiEvent | Copy of the event. |
Overrides
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. |