craffel / pretty-midi

Utility functions for handling MIDI data in a nice/intuitive way.
MIT License
856 stars 151 forks source link

Corruption check before loading tempo changes #249

Closed TimFelixBeyer closed 3 weeks ago

TimFelixBeyer commented 3 weeks ago

On some corrupted files, PrettyMIDI gets stuck while calling _load_tempo_changes. This can be avoided by moving the call behind the corruption check.

craffel commented 3 weeks ago

Thanks!