[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] MIDI-Perl: Cool, but not what I need



>This will require either access to a MIDI CDEV such as FreeMIDI, or access
>to the serial ports, the way I see it.

Not really.  You can set your Quicktime MIDI prefs to send MIDI to your 
keyboard, rather than using Quicktime's built-in instruments.  This 
presumes that your keyboard supports General MIDI, which is what 
Quicktime sends.  My MIDI keyboard *doesn't* support General MIDI 
(predates it in fact), which means I need to customize the output to it.  
However, since Quicktime's instruments have been gradually improving, I 
use them more and more.

You should be able to use MIDI.pm to read/compose MIDI files, and 
Mac::Movies to play the results.

This way your Perl code doesn't have to know about what devices are out 
there, and hence will be much more portable.

I suspect with some modification, Chris Nandor's mp3player.plx could 
serve as a MIDI player in Perl, though there's some MP3 specific stuff in 
there you could easily discard.

Unfortunately, I'm deeply involved in a complex project of my own at the 
moment, and can't break away to write up an example.

--B

# Fungal Parataxonomy                   Mycology Information (Mycoinfo)
# Webmaster, Staff Writer      **The World's First Mycology E-Journal**   
# <mailto:webmaster@mycoinfo.com>            <http://www.mycoinfo.com/> 
#
# First they ignore you. Then they laugh at you. Then they fight you.
# Then you win.                                     --Mohandas Gandhi


===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org