NFJones / audio-to-midi

A python program which performs an FFT on an audio file and produces a MIDI file from the results.
MIT License
213 stars 32 forks source link

TypeError: '>=' not supported between instances of 'NoneType' and 'int' #5

Open s1saida opened 4 years ago

s1saida commented 4 years ago

Traceback (most recent call last): File "D:\Programs\Python\Python37\lib\runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "D:\Programs\Python\Python37\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "D:\Programs\audio_to_midi.venv\Scripts\audio-to-midi.exe__main__.py", line 9, in File "d:\programs\audio_to_midi.venv\lib\site-packages\audio_to_midi\main.py", line 113, in main process.convert() File "d:\programs\audio_to_midi.venv\lib\site-packages\audio_to_midi\converter.py", line 270, in convert writer.add_notes(midi_list) File "d:\programs\audio_to_midi.venv\lib\site-packages\audio_to_midi\midi_writer.py", line 40, in add_notes if pitch >= 0: TypeError: '>=' not supported between instances of 'NoneType' and 'int'

s1saida commented 4 years ago

Seems the issue is fixed in your newest code. Would you please push the new version to pip?