Here's the code in C++, hopefully fairly platform-independent. With regards to distribution/usage, the usual stuff applies - acknowledge usage and don't distribute in a modified form.
Post a reply to this message
Attachments: Download 'midipov.cpp.txt' (8 KB)