I need to chop up 1 score into several 2-measure midi files. So basically I wind up with a bunch of individual 2 measure midi files that combined equal the whole song.
I've been able to write a script that basically gets the 2 bars I need. However, if I run it again, it'll overwrite the previous file name (since it's the same file). Is there a way to create a unique filename so that they don't overwrite eachother? And, is it possible to keep calling the same script until for example, there's 0 measures left? This way, I don't have to manually call the same script 50 times. |