def remove_invalid_notes(self):
        # Simply call the child method on all instruments
        for instrument in self.instruments:
            instrument.remove_invalid_notes()
Removes any notes which have an end time <= start time.
dataset/ETHPy150Open craffel/pretty-midi/pretty_midi/pretty_midi.py/PrettyMIDI.remove_invalid_notes