craffel/pretty-midi

Is there any way to split a MIDI files into smaller segements based on time in secods/ milliseconds?

VijayIyer opened this issue · 1 comments

Question: Let's say I have a MIDI file which when played is 20 seconds long. Is there a way to split it into 2 smaller MIDI files of length 10 (in seconds).

You can use adjust_times for that, see e.g. #149