Class ProgramChangeEvent
Represents a Program Change message.
Inherited Members
Namespace: Melanchall.DryWetMidi.Core
Assembly: Melanchall.DryWetMidi.dll
Syntax
public sealed class ProgramChangeEvent : ChannelEvent
Remarks
This message sent when the patch number changes.
Constructors
ProgramChangeEvent()
Initializes a new instance of the ProgramChangeEvent.
Declaration
public ProgramChangeEvent()
ProgramChangeEvent(SevenBitNumber)
Initializes a new instance of the ProgramChangeEvent with the specified
program number.
Declaration
public ProgramChangeEvent(SevenBitNumber programNumber)
Parameters
Type | Name | Description |
---|---|---|
SevenBitNumber | programNumber | Program number. |
Properties
ProgramNumber
Gets or sets program (patch) number.
Declaration
public SevenBitNumber ProgramNumber { get; set; }
Property Value
Type | Description |
---|---|
SevenBitNumber |
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. |