Brix wrote: > I'm working on an ear trainer using the rawmidi interface. > > Because i would let this application used by newbies, i need a > method to obtain (from files in /proc/asound, i think) the name of > a working MIDI Synth device.
It isn't possible to automatically determine which of the ports has a working synthesizer. I don't think you can avoid asking the user which port to use. And many computers with integrated motherboard sound chips don't have a synthesizer, so you'd have to use a software synthesizer, which is available only as an ALSA sequencer port. Using the sequencer would make your program more flexible, too. The ALSA sequencer isn't documented very well, either, but you could begin with this short HOWTO: <http://www.mail-archive.com/alsa-devel%40lists.sourceforge.net/msg08905.html> <http://www.mail-archive.com/alsa-devel%40lists.sourceforge.net/msg09011.html> (If you want to send an event immediately, schedule it at a relative time of 0.) HTH Clemens ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel