Steps to replicate the issue (include links if applicable):
- https://commons.wikimedia.org/wiki/File:Drum_note.mid
- https://commons.wikimedia.org/wiki/File:Quick_note_midi.mid
- https://commons.wikimedia.org/wiki/File:F_minor_chord.mid
What happens?:
which all run into the dividebyzero problem. It seems this is because getID3 doesnt support calculating the duration for files that have no tempo events. I think we can create some fallback logic for this.
What should have happened instead?:
The files should have a duration
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):