Hi Clemens, On Mon, Jun 30, 2003 at 10:46:24AM +0200, Clemens Ladisch wrote: > Ryan Underwood wrote: > > I'm confused on MIDI deviecs. :) Rather than bore you with the details of > > what I think is right, (since it is most likely wrong), can someone explain > > what each of the following do?: > > > > /dev/snd/midiC0D0 > > /dev/snd/midiC1D0 > > ALSA raw MIDI devices for card 0 and card 1 (see /proc/asound/cards > for the card number assignments). > > "Raw MIDI" means that you can send/receive MIDI with these, but witout > any meta information like timing. These files are useful for sending/ > receiving raw SysEx data (.syx files), but not for much else.
Ah! That would be why sysex files worked, but not midi files. Thanks for clearing that up! > > /dev/snd/seq > > The ALSA sequencer, which handles all ports on all cards. You're not > supposed to use this file directly. Again, I didn't know that, thanks! > > /dev/sound/dmmidi > > "dm" = direct music IIRC. I guess this is for an OPL3 FM synth. The OPL3 stuff is /dev/sound/dmfm*. I think this dmmidi might be some OSS MIDI thing but I'm not sure what it's for. the OSS documentation is not too clear on the differences between the different MIDI devices. > > /dev/sound/midi00 > > This is pretty much identical to /dev/snd/midiC0D0. > There should be a midi01 file for your second card. (?) Yeah, it doesn't look like the snd-mpu401 driver registers an OSS device. I think it should! > > /dev/sound/sequencer > > The OSS sequencer, which handles all ports on all cards. Ok, so catting a file to this device will send it to all ports on all cards? That is why catting the midi file to this device worked, I guess. > > /dev/snd/seq: > > cat and press keys, see nothing > > cat a file to it, "write error: Invalid argument" > > To play MIDI files, use a program with ALSA sequencer support, like > pmidi. Ok, tse3play works good too. thanks! ALSA is so different from OSS, I am too used to doing everything by piping data and catting this and that. > > The data coming from midiC1D0, sequencer, and sequencer2 are all > > different, but responds to my keyboard, so it must be the MIDI data > > coming from the ISA MPU401 card, right? > > Yes. > > However, there isn't any device file that would output .mid files, you > have to use a sequencer to record MIDI files. Interesting. Do you know anything about the differences between the data produced by those three devices? -- Ryan Underwood, <nemesis at icequake.net>, icq=10317253 ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ Alsa-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-user