So, I'm trying to implement chord recognition using a very simple model of template matching. But I tend to get errors in using the Librosa.feature.chroma_cqt() function.
Please help.
File "PycharmProjects/pyML/chordgram.py", line 146, in <module>
C = chromagram(file)
File "\pyML\chromagram1.py", line 24, in chromagram
chromagram = librosa.feature.chroma_cqt(y=y_harmonic, sr=sr, hop_length=hop_length)
File "\Anaconda3\lib\site-packages\librosa\feature\spectral.py", line 936, in chroma_cqt
real=False))
File "Anaconda3\lib\site-packages\librosa\core\constantq.py", line 230, in cqt
sparsity)
File "\Anaconda3\lib\site-packages\librosa\core\constantq.py", line 490, in __cqt_filter_fft
pad_fft=True)
File "\Anaconda3\lib\site-packages\librosa\filters.py", line 601, in constant_q
sig = sig * __float_window(window)(ilen)
File "\Anaconda3\lib\site-packages\librosa\filters.py", line 447, in _wrap
window = window_function(n, *args, **kwargs)
File "\Anaconda3\lib\site-packages\scipy\signal\windows.py", line 807, in hann
if _len_guards(M):
File "\Anaconda3\lib\site-packages\scipy\signal\windows.py", line 19, in _len_guards
raise ValueError('Window length M must be a non-negative integer')
ValueError: Window length M must be a non-negative integer