Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gameport Midi keyboard in alsa with kernel 2.6
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Sir Alaran
Apprentice
Apprentice


Joined: 11 Dec 2003
Posts: 182
Location: KSJC

PostPosted: Wed Feb 04, 2004 2:51 am    Post subject: Gameport Midi keyboard in alsa with kernel 2.6 Reply with quote

I've been having quite a bit of trouble getting my midi keyboard to work, to say the least.
I've given the forums what I would consider a thurough search and have come up with many half solutions, but nothing that actually works.

My goal is to get my Yamaha PSR-195 keyboard to connect through a game port, and able to input notes into Rosegarden with it. Despite my best efforts I have only been able to PLAY MIDI with the keyboard, and every indication is that the messages FROM the keyboard aren't being recieved. Using "cat" on everything midi related hasn't turned up anything. (with the exception of when I'm playing a file through my keyboard. But no input)

I have a 2.6.1 kernel with ALSA fully functional except for MIDI support. My sound card, if you'd call it that, is a built in to my VIA8235 mainboard. As I just mentioned, XMMS and TiMidity++ work fine, probably because they do not actually use any of the sound card's midi features.

Anyways, on with the specs:

Code:
 aconnect -io

gives the following:
Code:

client 0: 'System' [type=kernel]
    0 'Timer           '
    1 'Announce        '
client 72: 'Virtual Raw MIDI 1-0' [type=kernel]
    0 'VirMIDI 1-0     '
client 73: 'Virtual Raw MIDI 1-1' [type=kernel]
    0 'VirMIDI 1-1     '
client 74: 'Virtual Raw MIDI 1-2' [type=kernel]
    0 'VirMIDI 1-2     '
client 75: 'Virtual Raw MIDI 1-3' [type=kernel]
    0 'VirMIDI 1-3     '
client 80: 'Rawmidi 2 - MPU-401 (UART) 2-0' [type=kernel]
    0 'MPU-401 (UART) 2-0'


Ye olde
Code:
/etc/modules.d/alsa
file reads as follows:
Code:

alias snd-card-1 snd-cmpci
options snd-cmpci id="first" enable_midi="1"
options snd-card-0 mpu_port=0x330

alias sound-slot-0 snd-card-0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss

#alias sound-slot-1 snd-card-1
#alias snd-card-1 snd-mpu401
#options snd-mpu401 port="0x330" irq="7"
#alias sound-service-1-0 snd-mixer-oss
#alias sound-service-1-3 snd-pcm-oss
#alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

options snd cards_limit=1


I also get the following error whenever ALSA is started

Code:

/usr/sbin/alsactl: set_controls:986: snd_ctl_open error: No such file or directory
/usr/sbin/alsactl: set_controls:986: snd_ctl_open error: No such file or directory


Ideally I'd like to play with timidity and compose with the keyboard (while in Rosegarden, if possible. And I think it is possible using virmidi to have Rosegarden's output go to Timidity. I just don't know how.)
I do have the mpu401, and virmidi modules, as well as gameport joystick support etc. I just need that last piece of the puzzle. Any help would be greatly appreciated.
_________________
D is awesome.
Textadept is my friend.
Back to top
View user's profile Send private message
Woody
Guru
Guru


Joined: 30 Nov 2002
Posts: 592
Location: Milwaukee

PostPosted: Wed Feb 04, 2004 3:50 am    Post subject: Reply with quote

* For the alsactl error, make sure alsa-util is up to date and you have updated
the alsasound script via etc-update.

* I just opened up the Studio->Manage midi devices menu in rosegarden.
For the record option it was already set to my midi device. If I open up
the transport and 'show additional controls' there is a little monitor that
shows the midi input being received.

HTH
Back to top
View user's profile Send private message
Sir Alaran
Apprentice
Apprentice


Joined: 11 Dec 2003
Posts: 182
Location: KSJC

PostPosted: Wed Feb 04, 2004 5:33 am    Post subject: Reply with quote

The following is from Settings>Configure Rosegarden>Sequencer>Show detailed status:

Code:

80,0 - (Rawmidi 2 - MPU-401 (UART) 2-0, MPU-401 (UART) 2-0)         (DUPLEX) [type 2, cap 127]
    129,0 - (Client-129, port-0)      (WRITE ONLY) [type 1, cap 67]



That "WRITE ONLY" thing seems to be my trouble. It only puts data in to my keyboard.
_________________
D is awesome.
Textadept is my friend.
Back to top
View user's profile Send private message
Woody
Guru
Guru


Joined: 30 Nov 2002
Posts: 592
Location: Milwaukee

PostPosted: Wed Feb 04, 2004 6:05 am    Post subject: Reply with quote

Odd, it says Duplex so... maybe try one way at a time, delete the output
and add an input? Sorry, I don't have an mpu401 to be of much help. BTW,
you actually got me to try rosegarden again. Its looking rather nice.

You should have no problem using timidity as output. You can also output
to one of the many fun software synths like I just did.

If you don't already know there is a thriving linux audio community. One great
resource is the linux-audio-users mailing list. The people there are always a
big help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum