Xeno-rat
Loading...
Searching...
No Matches
NAudio.Midi.ChannelAfterTouchEvent Class Reference

Represents a MIDI Channel AfterTouch Event. More...

Inheritance diagram for NAudio.Midi.ChannelAfterTouchEvent:
Collaboration diagram for NAudio.Midi.ChannelAfterTouchEvent:

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.
 

Detailed Description

Represents a MIDI Channel AfterTouch Event.

Constructor & Destructor Documentation

◆ ChannelAfterTouchEvent() [1/2]

NAudio.Midi.ChannelAfterTouchEvent.ChannelAfterTouchEvent ( BinaryReader br)
inline

Creates a new ChannelAfterTouchEvent from raw MIDI data.

Parameters
brA binary reader

◆ ChannelAfterTouchEvent() [2/2]

NAudio.Midi.ChannelAfterTouchEvent.ChannelAfterTouchEvent ( long absoluteTime,
int channel,
int afterTouchPressure )
inline

Creates a new Channel After-Touch Event.

Parameters
absoluteTimeAbsolute time
channelChannel
afterTouchPressureAfter-touch pressure

Member Function Documentation

◆ Export()

override void NAudio.Midi.ChannelAfterTouchEvent.Export ( ref long absoluteTime,
BinaryWriter writer )
inlinevirtual

Exports the aftertouch pressure value to a binary writer.

Parameters
absoluteTimeThe absolute time reference for the export operation.
writerThe 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.

◆ GetAsShortMessage()

override int NAudio.Midi.ChannelAfterTouchEvent.GetAsShortMessage ( )
inlinevirtual

Returns the short message value with the addition of the after touch pressure shifted by 8 bits.

Returns
The short message value with the addition of the after touch pressure shifted by 8 bits.

Reimplemented from NAudio.Midi.MidiEvent.

◆ ToString()

override string NAudio.Midi.ChannelAfterTouchEvent.ToString ( )
inline

Returns a string representation that includes the base class's string representation and the value of the 'afterTouchPressure' property.

Returns
A string that includes the base class's string representation and the value of the 'afterTouchPressure' property.

Member Data Documentation

◆ afterTouchPressure

byte NAudio.Midi.ChannelAfterTouchEvent.afterTouchPressure
private

Property Documentation

◆ AfterTouchPressure

int NAudio.Midi.ChannelAfterTouchEvent.AfterTouchPressure
getset

The aftertouch pressure value.


The documentation for this class was generated from the following file: