Class NoteEvent
Represents a note MIDI event
public class NoteEvent : MidiEvent, ICloneable
- Inheritance
-
NoteEvent
- Implements
- Derived
- Inherited Members
Constructors
NoteEvent(BinaryReader)
Reads a NoteEvent from a stream of MIDI data
public NoteEvent(BinaryReader br)
Parameters
brBinaryReaderBinary Reader for the stream
NoteEvent(long, int, MidiCommandCode, int, int)
Creates a MIDI Note Event with specified parameters
public NoteEvent(long absoluteTime, int channel, MidiCommandCode commandCode, int noteNumber, int velocity)
Parameters
absoluteTimelongAbsolute time of this event
channelintMIDI channel number
commandCodeMidiCommandCodeMIDI command code
noteNumberintMIDI Note Number
velocityintMIDI Note Velocity
Properties
NoteName
The note name
public string NoteName { get; }
Property Value
NoteNumber
The MIDI note number
public virtual int NoteNumber { get; set; }
Property Value
Velocity
The note velocity
public int Velocity { get; set; }
Property Value
Methods
Export(ref long, BinaryWriter)
public override void Export(ref long absoluteTime, BinaryWriter writer)
Parameters
absoluteTimelongwriterBinaryWriter
GetAsShortMessage()
public override int GetAsShortMessage()
Returns
ToString()
Describes the Note Event
public override string ToString()
Returns
- string
Note event as a string