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

bug about midi #374

Open
Sakura-Hydrangea opened this issue Sep 18, 2024 · 1 comment
Open

bug about midi #374

Sakura-Hydrangea opened this issue Sep 18, 2024 · 1 comment

Comments

@Sakura-Hydrangea
Copy link

when i try to print a complexed midi file, i got error:
C:\Users\Bachopininoff.conda\envs\msst\lib\site-packages\partitura\utils\misc.py:68: SyntaxWarning: Command ['C:\Program Files\MuseScore 4\bin\MuseScore4.exe', '-T', '10', '-r', '90', '-o', 'C:\Users\BACHOP1\AppData\Local\Temp\tmpg2l_8jgt\score.png', 'C:\Users\BACHOP1\AppData\Local\Temp\tmpg2l_8jgt\score.musicxml', '-f'] failed with code 3221225477; stdout: ; stderr: [55372:32336:20240918,095933.268:ERROR filesystem_win.cc:129] GetFileAttributes C:/Users/Bachopininoff/AppData/Local/MuseScore/MuseScore4/logs/dumps\attachments\d4ab2e09-8f19-4810-8cb4-9f932eb2966d: The system cannot find the specified file.。 (2)

return f(*args, **kwargs)

@sildater
Copy link
Member

Thank you for raising this issue! Can you share the MIDI file in question?
From your error I'd assume that you load the file using load_score, the file doesn't have a standard midi extension (.mid or .midi) and partitura then defaults to parsing by musescore, which produces the error. If that's the case, you can bypass this by using load_score_midi or load_performance_midi instead of the generic load_score (which tries to quess the file type based on the extension), changing the file extension, and making sure it's actually a midi 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