Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to find TimeSignature in meterStream; cannot process Measures #49

Open
368c opened this issue Dec 1, 2021 · 1 comment
Open

Comments

@368c
Copy link

368c commented Dec 1, 2021

When I ran lstm.py as it was, I got the error "failed to find TimeSignature in meterStream; cannot process Measures".

@WhistlingKite
Copy link

@368c

When I ran lstm.py as it was, I got the error "failed to find TimeSignature in meterStream; cannot process Measures".

Put the code on line 34, that is midi = converter.parse(str(file)) into a try, except block for the files giving this error.
Example:

try:
    midi = converter.parse(str(file))
except StreamException:
    print('failed to find time signature for file %s' % file)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants