From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: rawmidi problems Date: Mon, 08 Jul 2002 17:50:18 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <200207051753.54999.plcl@telefonica.net> <200207051930.42945.plcl@telefonica.net> <200207081741.46397.plcl@telefonica.net> Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <200207081741.46397.plcl@telefonica.net> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Pedro Lopez-Cabanillas Cc: alsa-devel List-Id: alsa-devel@alsa-project.org At Mon, 8 Jul 2002 17:41:46 +0200, Pedro Lopez-Cabanillas wrote: > > El Lun 08 Jul 2002 12:40, Takashi Iwai escribió: > > At Fri, 5 Jul 2002 19:30:42 +0200, > > Pedro Lopez-Cabanillas wrote: > > > with /dev/midi00 ouput goes to ens-1371, /dev/midi01 goes to the first > > > usb midi device, and /dev/midi02 goes to the second, but both usb devices > > > have 2 inputs ans 2 outputs. Can I get all my five midi ports work with > > > oss midi emulation? > > > > do you really need to use oss midi devices? > > as long as you only reading/writing midi byte streams (i.e. no > > ioctls), you can use simply alsa rawmidi devices, /dev/snd/midiCxDx, > > instead of /dev/midiXX. > > No, I agree with you. In fact, I don't need the raw midi devices at all, as > the sequencer API can do all and more. > > My question was if I made a mistake or I am forgiving something, or if it is a > limitation on ALSA OSS emulation. Only trying to deeply test the new > snd-usb-midi driver. And for the fun of doing the things in several different > ways. ok, point taken. on OSS emulation, only up to two devices can be assigned per card. one is assigned to /dev/midiXX and another to /dev/amidiXX. which device is mapped can be changed via snd_midi_map and snd_amidi_map options for snd-rawmidi module. as default, they are specified as 0 and 1, respectively. > As an example, and only for fun, this is a bash script for cron (hourly, of > course) that plays thru raw midi devices without any special program. cool :) ciao, Takashi ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Oh, it's good to be a geek. http://thinkgeek.com/sf