Xeno-rat
|
Utility class for comparing MidiEvent objects. More...
Public Member Functions | |
int | Compare (MidiEvent x, MidiEvent y) |
Compares two MidiEvent objects based on their absolute time and returns a value indicating their relative order. | |
Utility class for comparing MidiEvent objects.
Compares two MidiEvent objects based on their absolute time and returns a value indicating their relative order.
x | The first MidiEvent to compare. |
y | The second MidiEvent to compare. |
This method compares the absolute time of the input MidiEvent objects. If the absolute times are equal, it further sorts the MetaEvent before note events, except for the EndTrack event. The method returns a negative value if x is to be placed before y , zero if they are equal, and a positive value if x is to be placed after y .