Error writing /dev/music

[email protected] ("John Held") Sun, 01 Jun 2003 12:27:34 -0700
Newsgroups perl.midi
Message-ID <[email protected]>
   I'd sure like to play around with some perl midi ideas, but am having 
problems getting out of the
   starting gate!

   Using a quite recent version of linux, I found no /dev/music device.  
However, I was able to create it and install MIDI::Music by doing the 
following:

# mknod -m 666 /dev/music c 14 8
# ln -s /dev/music /dev/sequencer2

Unfortunately, when running the following code,  I get an error writing to 
/dev/music:

use MIDI::Music;
    use Fcntl;
    my $mm = new MIDI::Music;

    # Initialize device for writing
    $mm->init('mode'     => O_WRONLY,
              'timebase' => 96,
              'tempo'    => 60,
              'timesig'  => [2, 2, 24, 8],
              ) || die $mm->errstr;

My sound card is described as follows:  82801AA AC'97 Audio Module: 
810_audio

Any ideas?   I'd sure appreciate any help!

--John Held

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail