Pages: [1]   Go Down
  Print  
Author Topic: How to setup DOSBox to know which midi device to use  (Read 3213 times)
0 Members and 1 Guest are viewing this topic.
jharris01
Senior Member
*
Offline Offline

Posts: 384



View Profile
« on: January 05, 2010, 12:07:40 PM »

If you use a MT32 and a SC for DOSBox gaming, then you probably have one MIDI to USB cable and daisy chain the units using MIDI THRU. You mute one device to let the other play.

This trick however is for those with multiple MIDI USB cables. Each roland unit is connected to its own midi/usb cable. In that case you would select the midi device (through Control Panel or a 3rd party tool) before running DOSBox. If you want to save yourself the trouble of manually changing the default midi device everytime you switch games then this is what you do:

First open up a dosbox window and type "mixer /listmidi". You will get a listing of midi devices. Write down the number next to each one:



In my case I have two USB cables, named "USB Audio device" and "USB Audio device (2)". The first one is attached to my SC unit, the other to my Roland MT32.

Now go and open the CONF file of your favorite DOSBox game with a text editor. Look for a line that says "midiconfig=". Write the number of the midi device you wish to permanently set. For example:

Quote
[midi]
mpu401=intelligent
mididevice=default
midiconfig=2




Save and close your CONF file. That's about it. Next time you launch your game DOSBox will automatically connect to the proper Roland unit without you making a trip to Window's Control panel.


NOTE: If you use a front end to run DOSBox, then it is possible the setting is available there. For example, D-Fend Reloaded has a field called "Additional Settings" (under the MIDI section in the profile editor). You type the number for your midi device there and it works the same.

This tip will also work on systems using MIDI cables through their sound card's joystick port, multiple software synths (Yamaha SXGY50, Roland Virtual SC) or any combination.
« Last Edit: January 08, 2010, 11:19:20 AM by jharris01 » Logged
Ari
Administrator
Senior Member
*
Offline Offline

Posts: 2,597



View Profile WWW
« Reply #1 on: January 07, 2010, 05:35:41 PM »

Thanks man! That will certainly be helpful. Smiley
Logged

I feel like I'm diagonally-parked in a parallel universe
jharris01
Senior Member
*
Offline Offline

Posts: 384



View Profile
« Reply #2 on: June 04, 2010, 12:11:49 AM »

Good news for D-Fend users. The upcoming release makes choosing from multiple MIDI devices a lot easier. It adds a "select device" button which automates the tip given in the original post. Just click, select your midi device of choice and that's it.


Click for bigger size

« Last Edit: June 04, 2010, 02:10:30 AM by jharris01 » Logged
ebondefender
Associate Member
*
Offline Offline

Posts: 23


RGM-MIDI 0079 lol


View Profile
« Reply #3 on: July 13, 2010, 04:26:14 PM »

I liked that function! Strange thing with mine is, I have to tell DosBox to use the "Windows Default" midi device, as I use a USB to MIDI cable to hook up my Roland SC/MT. I have Windows 7 x64 and a small .dll file in the WOW64 folder, so that I can utilize Windows' Control Panel to change how I want to output the music. (Like in XP) So for some reason when I pick "USB Device" under DosBox, I get dead silence. Dunno, maybe it's just the way I rigged my laptop lol
Logged

Buffer overflow? Is that like "PC Load Letter?"
Pages: [1]   Go Up
  Print  
 
Jump to: