-
Notifications
You must be signed in to change notification settings - Fork 39
DosBox configuration (MIDI only)
You can use the OPL2 board to output MIDI music from DosBox if the board is controlled by a Teensy++ 2.0 or later dev board. This article will tell you how to configure DosBox.
- Load the
TeensyMidi
sketch in the Arduino IDE. The sketch can be found under examples > Arduino OPL2 > Teensy. - Set the USB type of the Teensy to MIDI. Select Tools > USB Type > MIDI.
- Compile and install the sketch on your Teensy
After installing the sketch you should see that an audio device called 'OPL2 Audio Board MIDI` has been added to the system tree. Note that the device can also be called 'Teensy MIDI' since the device names do not always update immediately.
-
We need to find the MIDI device id of the OPL2 board. Open DosBox and run
z:\mixer /listmidi
. This should show you what MIDI devices are available on your system and the OPL2 board should be one of them. Remember the number in front of the device.If you are using Linux or OS X run
pmidi -l
in the console. -
Now open your DosBox configuration file and look for the
[midi]
section. We need to alter the following:mpu401=uart
-
mididevice=win32
, or what MIDI device is more appropriate for your OS -
midiconfig=1
, or what ever the id of the OPL2 board is on your system (in the Linux example this would be20:0
)
-
Restart DosBox and configure your games to use MT-32 or General Midi on port 330 to enjoy MIDI music through your OPL2 Audio Board!
For more info visit the DosBox Wiki on MIDI Configuration.
- OPL2 Audio Board assembly guide
- Connecting the OPL2 Audio Board
- Connecting the OPL3 Duo!
- Troubleshooting
- Definitions
- Constructors and initialization
- Utility functions and helpers
- Instrument functions
- Register getters and setters
- OPL3Duo extensions
- Low level access
- Running OPL2 Audio Board example code on your OPL3 Duo!
- In-depth OPL2 and OPL3 programming guide
- Making a sound
- Working with instruments
- Using the OPL3BankEditor
- DosBox configuration (MIDI only)
- DosBox-X configuration
- Nuke.YKT's serial OPL2/OPL3 protocol
- Bonus project: Touch sensor piano