I need to be able to remove and insert tracks to an existing MidiFile object.
I added the following to juce_MidiFile.h and it works fine as the underlying OwnedArray supports these methods. Could these methods be supported in the official version?
void removeTrack (int indexToRemove, bool deleteObject = true)
{
tracks.remove(indexToRemove, deleteObject);
}
void insertTrack (int index, const MidiMessageSequence& trackSequence)
{
tracks.insert(index, new MidiMessageSequence (trackSequence));
}