Paul Davis wrote: > >I don't know how to be more specific. I have a program that listen to > >a raw midi stream generated by alsa. But I try. > > You have a program that uses the sequencer to read MIDI data. That's > totally different from a program that uses the raw MIDI interface to > read MIDI data. This is very, very important. > > >I have a midisport 8x8. It have a serial port. I have a computer > >linux. Alsa don't have driver for the unit. So I have writen a daemon > >that open the snd-card-virmidi with snd_rawmidi_open(). > > This makes no sense at all to me. snd_rawmidi_open() is a way to > get access to an ALSA low level, raw MIDI driver. For example, my > trident card has a MIDI port on it, and the trident driver contains > code to deliver and receive data from the port. If I want to > read/write that data stream, I would use snd_rawmidi_open(). >
Yes, and my device is a midisport. > > But snd_rawmidi_open() has nothing to do with the sequencer, or with > virmidi. virmidi exists to make sequencer ports available via the raw > MIDI API so that programs which don't know about the sequencer can > still read and write data to it. > I do. I is a connection. I gets a client ID. So it have very mush to do with the sequencser. > > If there is no ALSA driver for the unit (or for serial MIDI - I am not > sure if we have such a thing, do we?), then why would you be calling > snd_rawmidi_open()? > There is a serial driver. But it dont handle the same protocol as midisport. So how should I connect my device so I can use the midisport to talk to my synths? Rawmid on a snd-card-virmidi gives one way. Show me a better way instead of say that im wrong. > > > I have also > >writen a processor that handels event on a sequencer level to > >interface my Roland MCR-8 with varius applications, synths. > > Why are you using the sequencer for this? It is the api for midi programming. I don't have to think about active sensing, streaming or anything on the low level. And I get tools for routing the data as I like. I thougth that you should know the concept. Almost everything is in realtime. But some mappings i done in the time domain as well. For example the dialer. > > > --p -- foo! _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel