|
Xeno-rat
|
Represents a MIDI control change event. More...
Public Member Functions | |
| ControlChangeEvent (BinaryReader br) | |
| Reads a control change event from a MIDI stream. | |
| ControlChangeEvent (long absoluteTime, int channel, MidiController controller, int controllerValue) | |
| Creates a control change event. | |
| override string | ToString () |
| Returns a string representation of the object, including the controller and controller value. | |
| override int | GetAsShortMessage () |
| Gets the short message by combining the base short message with the controller and controller value. | |
| override void | Export (ref long absoluteTime, BinaryWriter writer) |
| Exports the data to a binary writer, including the controller and its value. | |
Public Member Functions inherited from NAudio.Midi.MidiEvent | |
| MidiEvent (long absoluteTime, int channel, MidiCommandCode commandCode) | |
| Creates a MIDI event with specified parameters. | |
| virtual MidiEvent | Clone () |
| Creates a new object that is a copy of the current instance. | |
| override string | ToString () |
| Returns a string representation of the current Midi event. | |
Properties | |
| MidiController | Controller [get, set] |
| The controller number. | |
| int | ControllerValue [get, set] |
| The controller value. | |
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 | |
| MidiController | controller |
| byte | controllerValue |
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 control change event.
|
inline |
Reads a control change event from a MIDI stream.
| br | Binary reader on the MIDI stream |
|
inline |
Creates a control change event.
| absoluteTime | Time |
| channel | MIDI Channel Number |
| controller | The MIDI Controller |
| controllerValue | Controller value |
|
inlinevirtual |
Exports the data to a binary writer, including the controller and its value.
| absoluteTime | The absolute time reference for the export operation. |
| writer | The binary writer to which the data is exported. |
| Exception | Thrown when an error occurs during the export operation. |
This method exports the controller and its corresponding value to the specified binary writer. It first calls the base class's Export method to handle any base class-specific export operations. The controller and its value are then written to the binary writer using the Write method.
Reimplemented from NAudio.Midi.MidiEvent.
|
inlinevirtual |
Gets the short message by combining the base short message with the controller and controller value.
Reimplemented from NAudio.Midi.MidiEvent.
|
inline |
Returns a string representation of the object, including the controller and controller value.
|
private |
|
private |
|
getset |
The controller number.
|
getset |
The controller value.