The original version of this page can be found at : http://forum.makemusic.com/default.aspx?f=12&m=340825
Posted By : ccat - 9/1/2011 6:37 PM
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.