Class NoteAftertouchEvent
Represents a Polyphonic Key Pressure (Aftertouch) message.
Inherited Members
Namespace: Melanchall.DryWetMidi.Core
Assembly: Melanchall.DryWetMidi.dll
Syntax
public sealed class NoteAftertouchEvent : ChannelEvent
Remarks
This message is most often sent by pressing down on the key after it "bottoms out".
Constructors
NoteAftertouchEvent()
Initializes a new instance of the NoteAftertouchEvent.
Declaration
public NoteAftertouchEvent()
NoteAftertouchEvent(SevenBitNumber, SevenBitNumber)
Initializes a new instance of the NoteAftertouchEvent with the specified
note number and aftertouch (pressure) value.
Declaration
public NoteAftertouchEvent(SevenBitNumber noteNumber, SevenBitNumber aftertouchValue)
Parameters
Type | Name | Description |
---|---|---|
SevenBitNumber | noteNumber | Note number. |
SevenBitNumber | aftertouchValue | Aftertouch (pressure) value. |
Properties
AftertouchValue
Gets or sets aftertouch (pressure) value.
Declaration
public SevenBitNumber AftertouchValue { get; set; }
Property Value
Type | Description |
---|---|
SevenBitNumber |
NoteNumber
Gets or sets note number.
Declaration
public SevenBitNumber NoteNumber { 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. |