Class NoteEvent
Base class that represents a Note On or a Note Off message.
Inherited Members
Namespace: Melanchall.DryWetMidi.Core
Assembly: Melanchall.DryWetMidi.dll
Syntax
public abstract class NoteEvent : ChannelEvent
Constructors
NoteEvent(MidiEventType)
Initializes a new instance of the NoteEvent.
Declaration
protected NoteEvent(MidiEventType eventType)
Parameters
Type | Name | Description |
---|---|---|
MidiEventType | eventType |
NoteEvent(MidiEventType, SevenBitNumber, SevenBitNumber)
Initializes a new instance of the NoteEvent with the specified
note number and velocity.
Declaration
protected NoteEvent(MidiEventType eventType, SevenBitNumber noteNumber, SevenBitNumber velocity)
Parameters
Type | Name | Description |
---|---|---|
MidiEventType | eventType | The type of event. |
SevenBitNumber | noteNumber | Note number. |
SevenBitNumber | velocity | Velocity. |
Exceptions
Type | Condition |
---|---|
InvalidEnumArgumentException | eventType specified an invalid value. |
Properties
NoteNumber
Gets or sets note number.
Declaration
public SevenBitNumber NoteNumber { get; set; }
Property Value
Type | Description |
---|---|
SevenBitNumber |
Velocity
Gets or sets velocity.
Declaration
public SevenBitNumber Velocity { get; set; }
Property Value
Type | Description |
---|---|
SevenBitNumber |