Date: Sun, 18 May 2003 22:59:47 -0400 From: Mathew Kanner <mat@cnd.mcgill.ca> To: jimd@siu.edu Cc: freebsd-current@freebsd.org Subject: Re: MIDI on SB Live! ? Message-ID: <20030519025947.GD60782@cnd.mcgill.ca> In-Reply-To: <20030518182924.K570@freebsd2.localnet10> References: <C192C8912E798F4399668791C89651906BF5DE@mx.hhp.local> <20030518182924.K570@freebsd2.localnet10>
next in thread | previous in thread | raw e-mail | index | archive | help
On May 18, jimd@siu.edu wrote: > I downloaded the emu10kx module, compiled, and ran it, but didn't see > anything that indicated MIDI input. It might very well be, however, my > "system": I have a SoundBlaster Live! PCI card AND something-or-other > onboard AC97, but FBSD-4.8 and FBSD-5.1-BETA can't "see" the motherboard > AC97 device. > > While I have the "official" Creative Labs MIDI to DB15 cable, there is > also a possibility that IT is not working properly. I DID verify that the > MIDI output port was "live": I removed the MIDI cable from it to one MIDI > keyboard that was in MIDI playback mode, and working, and inserted the > Creative Labs MIDI cable, but nothing else appeared on the console. > > Below is what appeared on the console, but I am sure that you have already > seen this: > > emu10kx0: <Creative EMU10K1> port 0xcc00-0xcc1f irq 5 at de > vice 7.0 on pci0 > emu10kx0: Card Configuration ( 0x00000e15 ) > emu10kx0: Card Configuration ( & 0xff000000 ) : > emu10kx0: Card Configuration ( & 0x00ff0000 ) : > emu10kx0: Card Configuration ( & 0x0000ff00 ) : [GPOUT1] [GPOUT2] [Joystick] > emu10kx0: Card Configuration ( & 0x000000ff ) : [AUTOMUTE] [LOCKTANKCACHE] [AUDI > OENABLE] > emu10kx0: sc = 0xc6a8e800 > EMU_ENATIMER: sc=0xc6a8e800, go=0) > midi0: <EMU10Kx Midi Interface> on emu10kx0 > midi0: MIDI Attach called for port 1... Note this using the newmidi that's currently available in fbsd. It can read/write on the raw port (/dev/midi%d) and writes to the sequencer (/dev/sequencer). A simple test would be dd if=/dev/midi0 of=/dev/null bs=1 Which should produce a stream of bytes corresponding to active sensing requesting (provided they aren't filtered) and note on /note off events. Also, you should see irq's for reading. (provided your equipment is connecting, you will get an irq 3-5 a second while the keyboard is connected, 0 while disconnected) Playmidi should compile in the ports by changing the #include <dev/machine/soundcard.h> to #include <dev/sys/soundcard.h> Then play a .mid file. emu10k1 provides an mpu401 which should be relatively easy to support as far as midi hardware goes (since the code already exists). --Mat -- Brain: Pinky, are you pondering what I'm pondering? Pinky: Well, I think so Brain, but if we didn't have ears, we'd look like weasels.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030519025947.GD60782>