Hello!

> The info I have found so far is quite vague about how to get midi woking
> with the opl3 driver.

> Does anyone have any pearls of wisdom they would like to share?

  This should really go to ALSA FAQ...


How to play MIDI music on your OPL2/3 chip

OPL3 could be used in three ways:

- as directFM device:

  This means you can directly program OPL3 registers using API, described
at http://www.opensound.com/dmguide/dmfm.html and alsa-driver/asound_fm.h.
DirectFM interface is fully OSS compatible (if configured --with-oss=yes),
OSS applications access directFM device at /dev/dmfm?.

- as OSS MIDI device:

  You should configure --with-sequencer=yes and --with-oss=yes. Playmidi
should then work unmodified with ALSA. You should run "playmidi -f
some_midi_file" to use 2op synthesis or "playmidi -4 some_midi_file" If
this doesn't work, try some "-e" or "-D" parameters. You don't need to
load any instrument patch, because playmidi loads its default patchset at
the beginning of playback.

- as ALSA MIDI device:

  You should configure --with-sequencer=yes. Because of ALSA's instrument
layer, INSTRUMENT PATCHES SHOULD BE LOADED FIRST. This is explained in
great detail in "sbiload" man page. sbiload can be found at alsa-tools
package in seq/sbiload directory.

  After instrument patches are loaded, pmidi
(http://www.sourceforge.net/projects/pmidi) should be used to playback
midi files.

  If still no sound is heard, check mixer settings or consult sequencer
proc interface /proc/asound/seq/ for additional info.


        Uros.


_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to