RossNelson
Posts: 3
Joined: Mon Jun 29, 2015 10:30 pm

Need help finding MIDI device driver without "sudo apt-get"

Thu Jul 02, 2015 11:57 pm

I'm trying to find a USB MIDI device driver so that I can read MIDI into a c program. like http://jeremyblythe.blogspot.co.uk/2013 ... -bell.html.

According to the article, there's a USB MIDI device located in /dev/snd called "midiC1D0". In my installation of Raspbian, I can't find this driver.

Is there a way to get this driver for a Raspberry Pi that's not connected to the internet? My only internet access is from a PC at the library, so I can't use "sudo apt-get ...".

- Thanks

User avatar
Douglas6
Posts: 4918
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Need help finding MIDI device driver without "sudo apt-g

Fri Jul 03, 2015 3:33 am

You probably don't need to install MIDI device drivers. The file you mention is a Linux virtual device file, not a driver. It would help us to know what MIDI device you have connected, and how, and the results of 'lsusb'. Also, what files are in the /dev/snd directory. I'm assuming you have a good reason to try and access it at a file level, rather than using ALSA?

betruk
Posts: 36
Joined: Fri Apr 24, 2015 8:17 am

Re: Need help finding MIDI device driver without "sudo apt-g

Fri Jul 03, 2015 5:30 am

This device works when connected to 2.0 but not on 3.0 port. And here is a solution I find, you can check it.http://answers.microsoft.com/en-us/wind ... b9e?auth=1

ame
Posts: 3172
Joined: Sat Aug 18, 2012 1:21 am
Location: New Zealand

Re: Need help finding MIDI device driver without "sudo apt-g

Fri Jul 03, 2015 5:38 am

betruk wrote:This device works when connected to 2.0 but not on 3.0 port. And here is a solution I find, you can check it.http://answers.microsoft.com/en-us/wind ... b9e?auth=1
That's not really relevant for the Pi.

ame
Posts: 3172
Joined: Sat Aug 18, 2012 1:21 am
Location: New Zealand

Re: Need help finding MIDI device driver without "sudo apt-g

Fri Jul 03, 2015 5:44 am

RossNelson wrote:I'm trying to find a USB MIDI device driver so that I can read MIDI into a c program. like http://jeremyblythe.blogspot.co.uk/2013 ... -bell.html.

According to the article, there's a USB MIDI device located in /dev/snd called "midiC1D0". In my installation of Raspbian, I can't find this driver.

Is there a way to get this driver for a Raspberry Pi that's not connected to the internet? My only internet access is from a PC at the library, so I can't use "sudo apt-get ...".

- Thanks
Did you look for the device when your USB MIDI interface was plugged in? Some devices only create a node when the device exists (and sometimes it moves, i.e. the device name increments by one).

While it's possible that you need to install a driver first, so that Linux knows how to handle the USB MIDI controller when it's plugged in, it's also possible that it will Just Work.

ame
Posts: 3172
Joined: Sat Aug 18, 2012 1:21 am
Location: New Zealand

Re: Need help finding MIDI device driver without "sudo apt-g

Fri Jul 03, 2015 5:50 am

Anyway, to answer your original question, this might help:
http://raspberrypi.stackexchange.com/qu ... ithout-net

Google lists many more suggestions.

RossNelson
Posts: 3
Joined: Mon Jun 29, 2015 10:30 pm

Re: Need help finding MIDI device driver without "sudo apt-g

Fri Jul 03, 2015 11:10 pm

Thanks for all your suggestions. I'll investigate further when I'm back with the R-Pi, and I'll get answers to your questions next time I get back to an internet connection.

-Thanks

RossNelson
Posts: 3
Joined: Mon Jun 29, 2015 10:30 pm

Re: Need help finding MIDI device driver without "sudo apt-g

Wed Jul 08, 2015 11:04 pm

Sorry for the long delay responding - I can't often get to an internet connected PC.

re: "It would help us to know what MIDI device you have connected, and how, ..."
The midi device is an AVID Keystation Mini 32 connected through a USB hub.

As soon as I answered the above question, I suspected what was wrong.
The hub is USB 3.0, and the R-Pi is USB 2.0. If I plug the USB 2.0 thumb drive into the hub,

everything works fine, but as soon as I connect a USB 3.0 device to the hub, the hub tries to

interact with the R-Pi as USB 3.0.

As soon as I connected the AVID Keystation Mini 32 directly to the R-Pi, it worked.

-Thanks!

Return to “C/C++”