Getting OPL3 (the old sense of OPL3; that is a 22/6 voice FM synth) to work was the most frustrating thing for me too, but here's how you do it:
1) Load the snd-opl3-synth, snd-seq-instr, snd-ainstr-fm and related modules. For my ad1816a card, I load the following, and modprobe fills in the dependencies: /sbin/modprobe snd-ad1816a /sbin/modprobe snd-opl3-synth 2) Get and install the sbiload program. It is supposed to be in the alsa-tools package in the seq directory, but the version included with 0.9r1 doesn't include any instruments. The CVS version does though, so your best bet is to get the CVS version of alsa tools or download the missing instruments (std.* and drums.*) from here: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/alsa/alsa-tools/seq/sbiload/ I used the following command to compile and install sbiload cd alsa-tools-0.9.0rc1/seq/sbiload ./configure --prefix=/usr/local --with-kernel=2.5.20 make sudo make install 3) Load the patches for the card like so: sbiload -p65:0 --opl3 std.o3 drums.o3 In my slackware /etc/rc.d/rc.modules, I have /usr/local/bin/sbiload -p 65:0 --opl3 \ /usr/local/share/alsa/banks/opl3/std.o3 \ /usr/local/share/alsa/banks/opl3/drums.o3 This loads the OPL3 versions of the sound banks. If you want more sound-blasterish sounds (OPL2), load std.sb and drums.sb. 4) Adjust the mixer levels. On my card, there is a Synth mixer and a FM mixer. The FM mixer is the one you want. On my card, the sound is very quiet until the slider is almost to the top, so you may need to experiment. OK, you should be able to generate FM music now. If you have a MIDI keyboard and a working MPU401, you can connect it to the OPL3 synth to hear sounds. Here are the outputs from aconnect $ aconnect -i client 0: 'System' [type=kernel] 0 'Timer ' 1 'Announce ' client 64: 'External MIDI 0' [type=kernel] 0 'MIDI 0-0 ' $ aconnect -o client 64: 'External MIDI 0' [type=kernel] 0 'MIDI 0-0 ' client 65: 'OPL3 FM synth' [type=kernel] 0 'OPL3 Port ' $ aconnect 64:0 65:0 Viola! Sounds! The newest version of Rosegarden works well for playing music at least. I recommend getting the kaconnect program if you want to work seriously with alsa synthesizers: http://www.suse.de/~mana/kalsatools.html You'll probably have to play with the makefile to get them to compile. I would also like to point out that, ISA MPU401 interfaces _really_ like to have IRQ 9, but it is often taken by the ACPI controller on modern motherboards (which is unchangable on my Tyan Tiger 100). In that case, be sure to set the next best interrupt, 10, as ISA in the BIOS settings. Setting IRQ 9 will not really prevent the ACPI controller from using it and causing the MPU401 to not work. Have fun, and tell your friends. What I would like is to be able to change the parameters on an OPL3 instrument using MIDI control messages. An OPL3 is two operators away from a DX-7 for crying out loud ;) - Brent On Fri, 7 Jun 2002, Bill Allen wrote: > I have a card based on the YMF-744. Theoretically you should be able to > use the OPL3 midi port to get midi sound, but I haven't been able to get > this to work. Your best bet is to use timidity. Get a recent version that > supports the alsa sequence as a server. The good news here is that > timidity sounds great since it can use some very nice old gravis > ultrasound patches. > > > Bill > > On Fri, 7 Jun 2002, [koi8-r] роман wrote: > > > Hi All ! > > I have sound card Xwave 6000, based on Yamaha YMF-754 chip. > > I download & compile ALSA drivers, libs & utils: > > > > ./configure --with-debug=full --with-sequencer=yes --with-oss=yes > > make > > make install > > ./snddevices > > > > I changed my modules.conf: > > > > # ALSA > > alias char-major-116 snd > > # OSS Free > > alias char-major-14 soundcore > > > > # ALSA > > alias snd-card-0 snd-ymfpci > > # OSS Free > > alias sound-slot-0 snd-card-0 > > > > # OSS Free > > alias sond-service-0-0 snd-mixer-oss > > alias sond-service-0-1 snd-seq-oss > > alias sond-service-0-3 snd-pcm-oss > > alias sond-service-0-12 snd-pcm-oss > > > > After rebooting i used alsamixer and unmute channels. > > I have a nice sound in alsaplayer, xmms, aviplay, gsmp. > > I used playmidi and kmid, but i have no MIDI sound. > > Help me please. > > Sorry, English is not my native language. > > > > mailto:[EMAIL PROTECTED] > > > > > > > > _______________________________________________________________ > > > > Don't miss the 2002 Sprint PCS Application Developer's Conference > > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > > > _______________________________________________ > > Alsa-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/alsa-user > > > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > Alsa-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/alsa-user > > _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ Alsa-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-user