[tpm] Playing MIDI notes using Perl?

Kartik Thakore thakore.kartik at gmail.com
Thu Sep 17 05:21:49 PDT 2009


You can do this with SDL perl. I have script example. Let me find it  
and get it for you

Kartik Thakore

On 15-Sep-09, at 11:14 AM, Abuzar Chaudhary  
<abuzarchaudhary at yahoo.com> wrote:

> Hi,
>
> Does anyone know how to play MIDI notes using Perl on Windows?
>
> I'm using Win32API::MIDI and in the example, they're using these hex  
> codes to turn notes on and off:
> $mo->ShortMsg(0x00403C90)
> $mo->ShortMsg(0x00003C90)
>
> These hex codes, where can I find a spec for them?  I've been  
> googling and going through the microsoft website for hours (which  
> the perldoc recommends), but I can't find anything.
>
> All I want to do is play music notes.  Is that too much to ask for?  
> With Commodore, it was really easy.  Like this:
>
> play "CDEFGAB"
>
> How difficult can this be?! As time goes by, programming gets worse :(
>
> Abuzar
>
> p.s. Please, no elitism, like I should be using Linux instead, or  
> I'm not RTFM, or I'm too dumb (I already know that).  Thanks.
>
>
>
> _______________________________________________
> toronto-pm mailing list
> toronto-pm at pm.org
> http://mail.pm.org/mailman/listinfo/toronto-pm


More information about the toronto-pm mailing list