You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to do onset detection in a classical music piece.
I expect the program to return an arraylist like [1,2,3,4,...] marking the onset timestamp of each note.
Actual behaviour
The program did nothing and an error like this occurred. (╥﹏╥...)
Traceback (most recent call last):
File "D:\workspace\SRT_simulation\madmom_note_extract.py", line 1, in <module>
import madmom
File "D:\anaconda3\Lib\site-packages\madmom\__init__.py", line 24, in <module>
from . import audio, evaluation, features, io, ml, models, processors, utils
File "D:\anaconda3\Lib\site-packages\madmom\audio\__init__.py", line 27, in <module>
from . import comb_filters, filters, signal, spectrogram, stft
File "madmom\\audio\\comb_filters.pyx", line 15, in init madmom.audio.comb_filters
File "D:\anaconda3\Lib\site-packages\madmom\processors.py", line 23, in <module>
from collections import MutableSequence
ImportError: cannot import name 'MutableSequence' from 'collections' (D:\anaconda3\Lib\collections\__init__.py)
I had the same issue. The problem is with the python version we're using. As mentioned in this stackoverflow post the MutableSequence is now in collections.abc.
Changing line 23 in your D:\anaconda3\Lib\site-packages\madmom\processors.py file to from collections.abc import MutableSequence solves the issue.
Expected behaviour
I want to do onset detection in a classical music piece.
I expect the program to return an arraylist like [1,2,3,4,...] marking the onset timestamp of each note.
Actual behaviour
The program did nothing and an error like this occurred. (╥﹏╥...)
Steps needed to reproduce the behaviour
Information about installed software
The text was updated successfully, but these errors were encountered: