Xeno-rat
|
Represents a MIDI Channel AfterTouch Event. More...
Public Member Functions | |
ChannelAfterTouchEvent (BinaryReader br) | |
Creates a new ChannelAfterTouchEvent from raw MIDI data. | |
ChannelAfterTouchEvent (long absoluteTime, int channel, int afterTouchPressure) | |
Creates a new Channel After-Touch Event. | |
override void | Export (ref long absoluteTime, BinaryWriter writer) |
Exports the aftertouch pressure value to a binary writer. | |
override int | GetAsShortMessage () |
Returns the short message value with the addition of the after touch pressure shifted by 8 bits. | |
override string | ToString () |
Returns a string representation that includes the base class's string representation and the value of the 'afterTouchPressure' property. | |
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 | |
int | AfterTouchPressure [get, set] |
The aftertouch pressure 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 | |
byte | afterTouchPressure |
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 Channel AfterTouch Event.
|
inline |
Creates a new ChannelAfterTouchEvent from raw MIDI data.
br | A binary reader |
|
inline |
Creates a new Channel After-Touch Event.
absoluteTime | Absolute time |
channel | Channel |
afterTouchPressure | After-touch pressure |
|
inlinevirtual |
Exports the aftertouch pressure value to a binary writer.
absoluteTime | The absolute time reference for the export operation. |
writer | The binary writer to which the aftertouch pressure value is exported. |
This method exports the aftertouch pressure value to the specified binary writer, modifying the writer in place.
Reimplemented from NAudio.Midi.MidiEvent.
|
inlinevirtual |
Returns the short message value with the addition of the after touch pressure shifted by 8 bits.
Reimplemented from NAudio.Midi.MidiEvent.
|
inline |
Returns a string representation that includes the base class's string representation and the value of the 'afterTouchPressure' property.
|
private |
|
getset |
The aftertouch pressure value.