Class NoteOffEvent
Represents a Note Off message.
Inherited Members
Namespace: Melanchall.DryWetMidi.Core
Assembly: Melanchall.DryWetMidi.dll
Syntax
public sealed class NoteOffEvent : NoteEvent
Remarks
This message is sent when a note is released (ended).
Constructors
NoteOffEvent()
Initializes a new instance of the NoteOffEvent.
Declaration
public NoteOffEvent()
NoteOffEvent(SevenBitNumber, SevenBitNumber)
Initializes a new instance of the NoteOffEvent with the specified
note number and velocity.
Declaration
public NoteOffEvent(SevenBitNumber noteNumber, SevenBitNumber velocity)
Parameters
Type | Name | Description |
---|---|---|
SevenBitNumber | noteNumber | Note number. |
SevenBitNumber | velocity | Velocity. |
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. |