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

"unexpected EOF" when importing generated MIDI #22

Open
sporkl opened this issue Oct 14, 2024 · 0 comments
Open

"unexpected EOF" when importing generated MIDI #22

sporkl opened this issue Oct 14, 2024 · 0 comments

Comments

@sporkl
Copy link

sporkl commented Oct 14, 2024

Hello,

I've been using mm to generate MIDI files. However, when I try to import these files into Musescore, I get the error "Import failed: bad midifile: unexpected EOF." I'm not able to import them into Logic Pro either.

Here's a minimal program that has the issue:

open Mm_midi
let writer = new MIDI.IO.Writer.to_file 44100 "test_out.mid" in
writer#note_on 1 64 1.0;
writer#advance 44100;
writer#note_off 1 64 0.0;
writer#close

I should note that I am able to import the generated files into Bitwig Studio. I can then re-export, and those re-exported files work as expected. So I'm all set for now, but just wanted to create this issue in case it's useful to know about.

Please let me know if I should provide any additional info!

Thanks

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

1 participant