Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

(zdog) Re: Dealing with MIDI

by zdog (Priest)
on May 31, 2001 at 21:31 UTC ( #84660=note: print w/replies, xml ) Need Help??

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 |

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://84660]
[Corion]: When you pass an arrayref, you get to treat it like a local array. But then, I'm cautious with the experimental features, because just when I thought function signatures were a set thing, there is a proposal to use sub [ $foo, $bar ] { ... } to ...
[Corion]: ... declare the parameters, instead of the more common sub ($foo, $bar) { ... }

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2017-11-17 20:42 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (272 votes). Check out past polls.