Class ControlChangeEvent
Represents a Control Change message.
Inherited Members
Namespace: Melanchall.DryWetMidi.Core
Assembly: Melanchall.DryWetMidi.dll
Syntax
public sealed class ControlChangeEvent : ChannelEvent
Remarks
This message is sent when a controller value changes. Controllers include devices
such as pedals and levers.
Constructors
ControlChangeEvent()
Initializes a new instance of the ControlChangeEvent.
Declaration
public ControlChangeEvent()
ControlChangeEvent(SevenBitNumber, SevenBitNumber)
Initializes a new instance of the ControlChangeEvent with the specified
controller number and controller value.
Declaration
public ControlChangeEvent(SevenBitNumber controlNumber, SevenBitNumber controlValue)
Parameters
Type | Name | Description |
---|---|---|
SevenBitNumber | controlNumber | Controller number. |
SevenBitNumber | controlValue | Controller value. |
Properties
ControlNumber
Gets or sets controller number.
Declaration
public SevenBitNumber ControlNumber { get; set; }
Property Value
Type | Description |
---|---|
SevenBitNumber |
ControlValue
Gets or sets controller value.
Declaration
public SevenBitNumber ControlValue { 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. |