-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
How can I append one midi-file to another? #42
Comments
Hi Thomas, Yes, you need to reduce time divisions of both files to common value. You can take either ticks per quarter note of first file or second one. Or you can set new value that will cause minimum rounding error on delta-times processing. I have plans on MIDI file merge tool, so thanks for your question. I'll increase priority of this task. Max |
Hi Max, |
+1 for the ability to stitch MIDI files more easily. For those who find this thread, here is how I did it. I had a list of MIDI files that I needed to append one after the other. The trick is to shift things before adding the chunks.
|
@unitybru Thanks for the code snippet! Please note that this code will work only for files with the same time division and tempo. I still have plans on MIDI files merger tool, but currently I'm busy with a big task about supporting macOS in Devices API of the library. Merging MIDI files requires more work in general case than it can be supposed :) |
Starting with the 7.0.0 version you can use built-in Merger tool to merge MIDI files. |
I would like to append one midi file to another.
I did the following:
I opened the first file (multiple tracks)
I opened the second file (multiple tracks) - and changed the beginning of all tracks to the end of the first midi file.
I added then all tracks of file2 to file1.
That seems not be sufficiant. Do I have to recalculate all delta-times of file2 with the „ticks-per-count-value“ of file1?
Thanks for your support!
Regards
Thomas
The text was updated successfully, but these errors were encountered: