DinosuGithub / Shared-Piano-MIDI-Saver

11 stars 4 forks source link

gives traceback #2

Closed coderadam2000 closed 3 weeks ago

coderadam2000 commented 3 weeks ago

it says line 58 in saving.py "elapsed": max([note['end'] for note in self.notes]) + 10 ValueError: max() iterable argument is empty pls help

DinosuGithub commented 3 weeks ago

Could you please send the link to the MIDI file you used?

coderadam2000 commented 3 weeks ago

how?

coderadam2000 commented 3 weeks ago

oops

coderadam2000 commented 3 weeks ago

fix that

coderadam2000 commented 3 weeks ago

https://midishare.dev/detail/d2aec47e6b36ddb171b5fc3297c754c2

DinosuGithub commented 3 weeks ago

Ah, I found the issue. It had to do with the fact that not all MIDI files use note_off messages. Thanks for letting me know.