m...@mikesolomon.org writes: > On 17 déc. 2012, at 18:13, Ben Rudiak-Gould <benrud...@gmail.com> wrote: >> On Sat, Dec 15, 2012 at 11:07 PM, m...@mikesolomon.org >> Incidentally, why is the midi parser written in C? It seems unlikely >> to be a time bottleneck since midi files are normally pretty small, > > Go for it - the code was written in 2001, maybe at a time when > Python/computers were slower than they are now. It's 500-ish lines, > so good luck!
There was at least one previous version of midi2ly. I'm not sure if that version was fully in Python or in C++. I seem to remember we tried doing everything in Python and it being about 20 to 100 times slower. For small midi files that does not matter much; so be sure to test with large midi files, ouverture coriolanus comes to mind. Jan -- Jan Nieuwenhuizen <jann...@gnu.org> | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl _______________________________________________ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond