Xeno-rat
|
Represents a MIDI note on event. More...
Public Member Functions | |
NoteOnEvent (BinaryReader br) | |
Reads a new Note On event from a stream of MIDI data. | |
NoteOnEvent (long absoluteTime, int channel, int noteNumber, int velocity, int duration) | |
Creates a NoteOn event with specified parameters. | |
override MidiEvent | Clone () |
Clones the current NoteOnEvent and returns a new instance of NoteOnEvent. | |
override string | ToString () |
Returns a string representation of the object. | |
Public Member Functions inherited from NAudio.Midi.NoteEvent | |
NoteEvent (BinaryReader br) | |
Reads a NoteEvent from a stream of MIDI data. | |
NoteEvent (long absoluteTime, int channel, MidiCommandCode commandCode, int noteNumber, int velocity) | |
Creates a MIDI Note Event with specified parameters. | |
override int | GetAsShortMessage () |
Gets the short message representation of the note event. | |
override string | ToString () |
Returns a formatted string representing the note's name and velocity. | |
override void | Export (ref long absoluteTime, BinaryWriter writer) |
Exports the note number and velocity to a binary writer. | |
Public Member Functions inherited from NAudio.Midi.MidiEvent | |
MidiEvent (long absoluteTime, int channel, MidiCommandCode commandCode) | |
Creates a MIDI event with specified parameters. | |
override string | ToString () |
Returns a string representation of the current Midi event. | |
Properties | |
NoteEvent | OffEvent [get, set] |
The associated Note off event. | |
override int | NoteNumber [get, set] |
Get or set the Note Number, updating the off event at the same time. | |
override int | Channel [get, set] |
Get or set the channel, updating the off event at the same time. | |
int | NoteLength [get, set] |
The duration of this note. | |
Properties inherited from NAudio.Midi.NoteEvent | |
virtual int | NoteNumber [get, set] |
The MIDI note number. | |
int | Velocity [get, set] |
The note velocity. | |
string | NoteName [get] |
The note name. | |
Properties inherited from NAudio.Midi.MidiEvent | |
virtual int | Channel [get, set] |
The MIDI Channel Number for this event (1-16) | |
int | DeltaTime [get] |
The Delta time for this event. | |
long | AbsoluteTime [get, set] |
The absolute time for this event. | |
MidiCommandCode | CommandCode [get] |
The command code for this event. | |
Private Attributes | |
NoteEvent | offEvent |
Additional Inherited Members | |
Static Public Member Functions inherited from NAudio.Midi.MidiEvent | |
static MidiEvent | FromRawMessage (int rawMessage) |
Converts a raw MIDI message to a MidiEvent object. | |
static MidiEvent | ReadNextEvent (BinaryReader br, MidiEvent previous) |
Reads the next MIDI event from the BinaryReader and returns the corresponding MidiEvent. | |
static bool | IsNoteOff (MidiEvent midiEvent) |
Checks if the given MIDI event represents a Note Off message. | |
static bool | IsNoteOn (MidiEvent midiEvent) |
Checks if the provided MIDI event is a Note On event and returns true if the velocity is greater than 0. | |
static bool | IsEndTrack (MidiEvent midiEvent) |
Checks if the provided MIDI event is an end track event. | |
static int | ReadVarInt (BinaryReader br) |
Reads a variable-length encoded integer from the provided BinaryReader and returns the result. | |
static void | WriteVarInt (BinaryWriter writer, int value) |
Writes a variable-length encoded integer to the specified BinaryWriter. | |
Protected Member Functions inherited from NAudio.Midi.MidiEvent | |
MidiEvent () | |
Default constructor. | |
Represents a MIDI note on event.
|
inline |
Reads a new Note On event from a stream of MIDI data.
br | Binary reader on the MIDI data stream |
|
inline |
Creates a NoteOn event with specified parameters.
absoluteTime | Absolute time of this event |
channel | MIDI channel number |
noteNumber | MIDI note number |
velocity | MIDI note velocity |
duration | MIDI note duration |
|
virtual |
Clones the current NoteOnEvent and returns a new instance of NoteOnEvent.
Reimplemented from NAudio.Midi.MidiEvent.
|
inline |
Returns a string representation of the object.
|
private |
|
getset |
Get or set the channel, updating the off event at the same time.
|
getset |
The duration of this note.
There must be a note off event
|
getset |
Get or set the Note Number, updating the off event at the same time.
|
getset |
The associated Note off event.