http://www.perlmonks.org?node_id=84660


in reply to Dealing with MIDI

You might want to check out the MIDI module. It may not help you directly, but should keep you from having to deal with binary code.

Zenon Zabinski | zdog | zdog7@hotmail.com

Replies are listed 'Best First'.
Re: (zdog) Re: Dealing with MIDI
by no_slogan (Deacon) on May 31, 2001 at 21:59 UTC
    MIDI has some of the most confusing module documentation I have ever seen. There's a possibly-helpful example at the start of MIDI::Event. It sets a callback function that gets called for each "event" in the file (where events include the start of notes, as well as other things too fierce to mention). The hard part is probably going to be converting the numerical pitch value to the text notation you want.