linux's SNDCTL_SEQ_RT_ENABLE and perl's MIDI::Music
Hi,
I would like to use perl, I guess, to record what an
external device plays, and then be able to play it back.
http://www.perl.com/CPAN-local/authors/id/S/SE/SETHJ/MIDI-Music-0.01.tar.gz
needs SNDCTL_SEQ_RT_ENABLE so it can record MIDI
events and calcualtes the delta times itself, I guess.
What do I need to do to make MIDI::Music work ?
Do I need to patch MIDI::Music.xs or do I need to
patch ALSA ? What would be easier ?
searching through /usr/src/linux/alsa-driver-0.5.11 for SNDCTL_SEQ_RT_ENABLE yielded no results, neither did
http://www.google.com/search?q=alsa+SNDCTL_SEQ_RT_ENABLE&btnG=Google+Search
Thanks,
John
______________________________________________________________________
File your taxes online! http://taxes.yahoo.ca
Quoted 9 lines
I would like to use perl, I guess, to record what an external device plays, and then be able to play it back.
http://www.perl.com/CPAN-local/authors/id/S/SE/SETHJ/MIDI-Music-0.01.tar.gz
needs
SNDCTL_SEQ_RT_ENABLEso it can record MIDI events and calcualtes the delta times itself, I guess.
Quoted 8 lines
What do I need to do to make
MIDI::Musicwork ? Do I need to patchMIDI::Music.xsor do I need to patch ALSA ? What would be easier ?searching through
/usr/src/linux/alsa-driver-0.5.11forSNDCTL_SEQ_RT_ENABLEyielded no results, neither did
http://www.google.com/search?q=alsa+SNDCTL_SEQ_RT_ENABLE&btnG=Google+Search
i am not sure about the sequencer API specifically, but in general, the ALSA API in 0.5.X bears little resemblance to the one in 0.9.X. porting software from one to the other is not hard, but its not just a matter of "this ioctl is missing, use this one instead".
takashi can comment more fruitfully on the sequencer API in particular.
--p
At Tue, 26 Mar 2002 17:52:30 -0500 (EST),
Quoted 11 lines · fn ln
Hi,
I would like to use perl, I guess, to record what an
external device plays, and then be able to play it back.http://www.perl.com/CPAN-local/authors/id/S/SE/SETHJ/MIDI-Music-0.01.tar.gz
needs
SNDCTL_SEQ_RT_ENABLEso it can record MIDI
events and calcualtes the delta times itself, I guess.
where is it defined?
this is not found in OSS/Free, so i guess it's (commercial) OSS specific. if my guess is correct, then i don't rocommend to use this ioctl, not only because alsa doesn't support it.
Takashi