[tpm] Playing MIDI notes using Perl?
Abuzar Chaudhary
abuzarchaudhary at yahoo.com
Tue Sep 22 14:38:52 PDT 2009
Hi Kartik,
Thanks, I didn't know you could do MIDI through SDL. Yes, I'd be into trying it out.
Thanks,
Abuzar
--- On Thu, 9/17/09, Kartik Thakore <thakore.kartik at gmail.com> wrote:
> From: Kartik Thakore <thakore.kartik at gmail.com>
> Subject: Re: [tpm] Playing MIDI notes using Perl?
> To: "abuzar at abuzar.com" <abuzar at abuzar.com>, "tpm at to.pm.org" <tpm at to.pm.org>
> Date: Thursday, September 17, 2009, 8:21 AM
> 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