Kara-Moon Forum

Developers & Technology => Musical MIDI Accompaniment (MMA) => Topic started by: bvdp on July 15, 2015, 05:58:54 PM



Title: MMA 15.01e
Post by: bvdp on July 15, 2015, 05:58:54 PM
A couple of minor fixes:

   - since adding the subroutine function, things didn't work with python3. Sorry.

   - added a lyric On or Off option. Handy for multiple verse stuff.

As always, get it at: http://mellowood.ca/mma/downloads.html#developer

By the way, I just tested generating about 1000 files using python2 and 3. 2 still wins the speed race ... it is about  30% faster :)


Title: Re: MMA 15.01e
Post by: folderol on July 15, 2015, 09:47:17 PM
A couple of minor fixes:

   - since adding the subroutine function, things didn't work with python3. Sorry.

   - added a lyric On or Off option. Handy for multiple verse stuff.

As always, get it at: http://mellowood.ca/mma/downloads.html#developer

By the way, I just tested generating about 1000 files using python2 and 3. 2 still wins the speed race ... it is about  30% faster :)

That rather surprises me. I wonder what the cause is.


Title: Re: MMA 15.01e
Post by: bvdp on July 15, 2015, 11:34:47 PM
I think it's a well known "fact" that 3 is slower. Probably a bunch is due to proper unicode handling?

Honestly, for MMA, it really doesn't matter. I compile 1100 songs in 2 minutes (just under 3 minutes in py3). So, that's about 0.1sec  (one tenth of one second!) per song. And, I'm pretty sure that most of the time is spent in starting up python, not running the actual code. Of course, this will vary a lot depending on your processor (I'm running an Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz which was pretty much top of the line a few years ago.

But, really, I have no idea. I just know of the purposes of MMA python is plenty fast :)