RaspberryPi and External MIDI hardware howto

General information and assistance with DOSBox.

RaspberryPi and External MIDI hardware howto

Postby NovaCoder » 2019-6-11 @ 04:21

Hi,

I've got my Pi hooked up to an SC-55 Mrk2 using USB and I can play MIDI files back so everything is connected properly in Linux.

Anyone know if the Raspberry Pi build of DOSBox supports real MIDI hardware and if so what settings I should use in the config file?

Thanks
User avatar
NovaCoder
Newbie
 
Posts: 15
Joined: 2012-12-17 @ 03:39
Location: Melbourne, Australia

Re: RaspberryPi and External MIDI hardware howto

Postby gdjacobs » 2019-6-11 @ 18:02

Yes, it does. Look into using aconnect (for CLI) or one of the graphical patch utilities such as Claudia.
User avatar
gdjacobs
l33t++
 
Posts: 6588
Joined: 2015-11-03 @ 05:51
Location: The Great White North

Re: RaspberryPi and External MIDI hardware howto

Postby NovaCoder » 2019-7-17 @ 23:53

thanks but I shouldn't need them as ScummVM for Raspberry Pi correctly lists my MIDI USB device as 'ALSA One' as an option in the configuration dialog without me having to install any additional software.

I'm now wondering if external MIDI support is even enabled in the Raspberry Pi build of DOSBox?

I also found this link which might help me to figure it out -> https://wiki.debian.org/AlsaMidi
User avatar
NovaCoder
Newbie
 
Posts: 15
Joined: 2012-12-17 @ 03:39
Location: Melbourne, Australia

Re: RaspberryPi and External MIDI hardware howto

Postby gdjacobs » 2019-7-18 @ 02:49

Check the config file in $HOME/.dosbox to see what MIDI devices are enabled.
User avatar
gdjacobs
l33t++
 
Posts: 6588
Joined: 2015-11-03 @ 05:51
Location: The Great White North

Re: RaspberryPi and External MIDI hardware howto

Postby Ze_ro » 2019-7-20 @ 01:28

I was doing this on a desktop and not the the Pi, but it should be largely the same... Here's how I got my SC-88 working on Linux:

You need to find the port that ALSA has assigned to your MIDI interface... from a terminal, type "aplaymidi -l" and you should get something like this:

Code: Select all
[zero@ptolemy ~] $ aplaymidi -l
 Port    Client name                      Port name
 14:0    Midi Through                     Midi Through Port-0
 28:0    UM-ONE                           UM-ONE MIDI 1

I'm using a Roland UM-ONE USB MIDI interface, so here I can see that it's been assigned port 28:0. Now, I need to tell that to DOSBox by editing the configuration file. That file will be in ~/.dosbox and for me it's named dosbox-0.74-2.conf. If you open that file, look for the following lines that describe MIDI support:

Code: Select all
mpu401=intelligent
mididevice=default
midiconfig=

You'll want to change those to this (obviously, change the port to whatever you saw for your device) :

Code: Select all
mpu401=intelligent
mididevice=alsa
midiconfig=28:0

Restart DOSBox and you should be good to go. Be warned that if you move the device to a different USB port, ALSA might assign it a different port number and you'll have to change the config file again. Hope that works for you.

--Zero
User avatar
Ze_ro
Newbie
 
Posts: 16
Joined: 2006-1-21 @ 02:10

Re: RaspberryPi and External MIDI hardware howto

Postby gdjacobs » 2019-7-20 @ 06:40

A slightly more flexible way is to use the Midi Through device.

If aconnect -l showed as per Zero's post, run this on the command line:
aconnect 14:0 28:0

In the conf file:
midiconfig=14:0

This way, if you want to run a soft synth you can switch over easily.
User avatar
gdjacobs
l33t++
 
Posts: 6588
Joined: 2015-11-03 @ 05:51
Location: The Great White North

Re: RaspberryPi and External MIDI hardware howto

Postby NovaCoder » 2019-7-22 @ 03:40

Ze_ro wrote:I was doing this on a desktop and not the the Pi, but it should be largely the same... Here's how I got my SC-88 working on Linux:

You need to find the port that ALSA has assigned to your MIDI interface... from a terminal, type "aplaymidi -l" and you should get something like this:

Code: Select all
[zero@ptolemy ~] $ aplaymidi -l
 Port    Client name                      Port name
 14:0    Midi Through                     Midi Through Port-0
 28:0    UM-ONE                           UM-ONE MIDI 1

I'm using a Roland UM-ONE USB MIDI interface, so here I can see that it's been assigned port 28:0. Now, I need to tell that to DOSBox by editing the configuration file. That file will be in ~/.dosbox and for me it's named dosbox-0.74-2.conf. If you open that file, look for the following lines that describe MIDI support:

Code: Select all
mpu401=intelligent
mididevice=default
midiconfig=

You'll want to change those to this (obviously, change the port to whatever you saw for your device) :

Code: Select all
mpu401=intelligent
mididevice=alsa
midiconfig=28:0

Restart DOSBox and you should be good to go. Be warned that if you move the device to a different USB port, ALSA might assign it a different port number and you'll have to change the config file again. Hope that works for you.

--Zero


Great, thanks Zero and gdjacobs. This is exactly what I was looking for, will try it out tonight with my SC-55 Mrk 2 powered pie!

:)
User avatar
NovaCoder
Newbie
 
Posts: 15
Joined: 2012-12-17 @ 03:39
Location: Melbourne, Australia

Re: RaspberryPi and External MIDI hardware howto

Postby gdjacobs » 2019-7-22 @ 22:32

Best of luck!
User avatar
gdjacobs
l33t++
 
Posts: 6588
Joined: 2015-11-03 @ 05:51
Location: The Great White North


Return to DOSBox General

Who is online

Users browsing this forum: No registered users and 2 guests