From owner-freebsd-current@FreeBSD.ORG Sun May 18 19:56:54 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE32337B401 for ; Sun, 18 May 2003 19:56:54 -0700 (PDT) Received: from hak.cnd.mcgill.ca (hak.cnd.mcgill.ca [132.216.11.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2F9D43F85 for ; Sun, 18 May 2003 19:56:53 -0700 (PDT) (envelope-from mat@hak.cnd.mcgill.ca) Received: from hak.cnd.mcgill.ca (localhost.cnd.mcgill.ca [127.0.0.1]) by hak.cnd.mcgill.ca (8.12.3p2/8.12.3) with ESMTP id h4J2xl6d069004; Sun, 18 May 2003 22:59:47 -0400 (EDT) (envelope-from mat@hak.cnd.mcgill.ca) Received: (from mat@localhost) by hak.cnd.mcgill.ca (8.12.3p2/8.12.3/Submit) id h4J2xl7Y069003; Sun, 18 May 2003 22:59:47 -0400 (EDT) Date: Sun, 18 May 2003 22:59:47 -0400 From: Mathew Kanner To: jimd@siu.edu Message-ID: <20030519025947.GD60782@cnd.mcgill.ca> References: <20030518182924.K570@freebsd2.localnet10> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030518182924.K570@freebsd2.localnet10> Organization: I speak for myself, operating in Montreal, CANADA User-Agent: Mutt/1.5.3i X-Spam-Status: No, hits=-32.3 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,PLING_QUERY,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53 X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp) cc: freebsd-current@freebsd.org Subject: Re: MIDI on SB Live! ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 May 2003 02:56:55 -0000 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: 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: 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 to #include 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.