index 0 is out of bounds for axis 0 with size 0
dylankolson opened this issue · comments
Dylan K commented
python3 Task_1_1.py
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numpy/core/numeric.py:538: ComplexWarning: Casting complex values to real discards the imaginary part
return array(a, dtype, copy=False, order=order)
Traceback (most recent call last):
File "Task_1_1.py", line 174, in <module>
Detected_Note = note_detect(audio_file)
File "Task_1_1.py", line 152, in note_detect
i_max = indexes[0]
IndexError: index 0 is out of bounds for axis 0 with size 0