gkalyan04 / Audiosis

Audio Signal Processing (Note Detection, Silence Detection, Peak Detection ,Pitch detection, Onset detection, FFT)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

index 0 is out of bounds for axis 0 with size 0

dylankolson opened this issue · comments

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