-
Notifications
You must be signed in to change notification settings - Fork 136
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
I cannot Find any Functions to delete MIDI Events #46
Comments
I needed this as well so I've created pull request #52 which gives options for adding or deleting events from a list. |
There was no way of deleting MIDI events(!), but finally I have done something about it... The example program https://github.com/craigsapp/midifile/blob/f1d049169ddf974c9f5a230d1885e626dea979c3/src-programs/removenote.cpp demonstrates how to use the new deleting system. In the example program, here is the code which goes through the MidiEvents and applies midifile/src-programs/removenote.cpp Lines 35 to 51 in f1d0491
In the example program I write notes on MIDI keys 60, 61, 62, 63, 64, 65, and then delete the ones on key 63. The output from the program should have the 63 note messages removed:
When the MidiFile is written at line 51, any As done on line 49, you can optionally remove the empty This system is implemented in commit f1d0491 |
I want to delete some events in a track!But I don't know how to do it lol.
Please Help! ;D
The text was updated successfully, but these errors were encountered: