-
Notifications
You must be signed in to change notification settings - Fork 22
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
Help with multiple tracks #152
Comments
https://github.com/JuliaMusic/MIDI.jl/blob/master/src/midifile.jl#L31 the default MIDIFile has type 0. Can you try with |
That did the trick, thanks! Would it be worth adding something like the following to the fileio_save methods, or do you want to leave it up to the users? I'm happy to test and put together a pull request if that would be useful.
Alternatively, is there more work to do merging the tracks into a single track? |
The warning code you posted seems like a really good idea, yes please do a PR that adds this to the save function. I would not add more info to the documentation string though. |
In the same PR I think it is worth to make the default |
* Change default MIDIFile type to 1 as discussed in #152 * Add a warning for format 0 files with n-tracks > 1 * Bump minor version and update CHANGELOG
I think I must be missing something obvious, but I can't get multiple tracks to work. Based on the example here, I put together the following minimal example:
This results in a file that won't play (Internal data stream error), but no errors are raised in Julia. Thoughts?
The text was updated successfully, but these errors were encountered: