LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-19-2007, 11:17 PM   #1
Blyiss
LQ Newbie
 
Registered: Feb 2007
Distribution: Linux debian 2.6.18-3-486 #1 Mon Dec 4 15:59:52 UTC 2006 i686 GNU/Linux
Posts: 24

Rep: Reputation: 15
midi keyboard, how to make sound?midi keyboard, how to produce sounds?


Hello guys! I need help.
I am running Debian Etch.
I have a real time kernel compiled from 2.6.20.1, Rosegarden4, jackd, JACK Audio Connection Kit, fluidsynth, Qsynth, zynaddsubfx, via82xx soundcard, legacy soundcard, yamaha YRP-20 keyboard which is connected through the joystic port,
but I have no clue how to make my keyboard produce any sound. I want to record the music I play in Rosegarden and print it into Lilypond. Thanks in advance.
 
Old 03-20-2007, 10:59 AM   #2
glidermike
Member
 
Registered: Nov 2005
Location: Toronto Canada
Distribution: Debian
Posts: 90

Rep: Reputation: 16
I messed around with midi files so my daughter could compose and play music using NoteEdit and Denemo I had to install timidity and down-loaded ewpats ( for better sounds) then to get timidity to run with alsa I have to run this in a terminal: "timidity -iA -B8,2 -Os" You can put this into a start-up script so that it will run automatically upon boot ( but I'm too dense/lazy to figure out how ) I think the keyboards need the midi capability to be heard.
 
Old 03-20-2007, 12:57 PM   #3
Blyiss
LQ Newbie
 
Registered: Feb 2007
Distribution: Linux debian 2.6.18-3-486 #1 Mon Dec 4 15:59:52 UTC 2006 i686 GNU/Linux
Posts: 24

Original Poster
Rep: Reputation: 15
Thank you, glidermike, for your reply. I would definitely give up trying to fix this problem, if my keyboard didn't sound in Windows. Thus I assume that I missed something.
I have timidity installed. I use it to play midi files via xmms plugin and freeparts.

Last edited by Blyiss; 03-20-2007 at 12:59 PM.
 
Old 03-20-2007, 01:29 PM   #4
glidermike
Member
 
Registered: Nov 2005
Location: Toronto Canada
Distribution: Debian
Posts: 90

Rep: Reputation: 16
did a little poking around, I suppose you have looked at the Rosegarden site for info? http://www.rosegardenmusic.com/doc/e...ce-editor.html
It might be something simple, like recognizing your keyboard in the config dialog. Or perhaps plugging your keyboard into a different port other than the joystick port.
 
Old 03-20-2007, 02:16 PM   #5
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
Hi,
i have using midi keyboard trigger for many years on Linux and i use debian etch so i should be able to help.
to make sure the joystick is being seen as a midi port use the command
pmidi -l
if you don't have pmidi you need it
show me what the output is
the joystick port will be listed as UART
if the joystick port is not listed then try
modprobe snd-mpu401-uart
and see if it is listed now
might want to post the results of modprobe

lets get this first part out of the way before we move on
 
Old 03-20-2007, 10:39 PM   #6
Blyiss
LQ Newbie
 
Registered: Feb 2007
Distribution: Linux debian 2.6.18-3-486 #1 Mon Dec 4 15:59:52 UTC 2006 i686 GNU/Linux
Posts: 24

Original Poster
Rep: Reputation: 15
Thank you, guys for your help.
glidermike, I know this. I would be happier if they showed the right configuration to use. There are so many options that I have to try each and everything ends up crashing and I have to start over again. Of course I can buy a USB adaptor but that will be the same. Why joystick port is bad? I need to figure it out.

studioj, with or without modprobe snd-mpu401-uart pmidi -l says:

Code:
$ pmidi -l
 Port     Client name                       Port name
 14:0     Midi Through                      Midi Through Port-0
There's no UART anywhere.

Last edited by Blyiss; 03-20-2007 at 10:52 PM.
 
Old 03-21-2007, 12:07 PM   #7
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
show output from lsmod thanks.
to make sure joystick port is loaded at all.
i think the module is called gameport
lsmod | grep gameport
you should be able to look at
dmesg | grep gameport
and see where output where it was loaded up
 
Old 03-21-2007, 05:50 PM   #8
Blyiss
LQ Newbie
 
Registered: Feb 2007
Distribution: Linux debian 2.6.18-3-486 #1 Mon Dec 4 15:59:52 UTC 2006 i686 GNU/Linux
Posts: 24

Original Poster
Rep: Reputation: 15
Thank you, studioj
Code:
$ lsmod | grep gameport
gameport               16168  1 snd_via82xx
Code:
$ dmesg | grep gameport

..nothing

Does it mean anything?

Last edited by Blyiss; 03-21-2007 at 05:55 PM.
 
Old 03-22-2007, 10:54 PM   #9
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
at least we know what the problem is think.

try some options on the driver

http://www.alsa-project.org/alsa-doc...module=via82xx

looks there is an option parm: mpu_port long array (min = 1, max = 8), description "MPU-401 port."

try this in your /ect/modules.conf

Code:
options snd-via82xx index=0 mpu_port=0x330 joystick=1
reboot i guess then try
modprobe snd-mpu401-uart

then look at pmidi -l
and see if you have a new uart port
 
Old 03-23-2007, 12:12 AM   #10
Blyiss
LQ Newbie
 
Registered: Feb 2007
Distribution: Linux debian 2.6.18-3-486 #1 Mon Dec 4 15:59:52 UTC 2006 i686 GNU/Linux
Posts: 24

Original Poster
Rep: Reputation: 15
I tried what you said. Nothing.

I added the following to /ect/modules.conf:
Code:
# ALSA portion
        alias char-major-116 snd
        alias snd-card-0 snd-via82xx
	# module options should go here
 parm: index int array (min = 1, max = 8), description "Index value for VIA 82xx bridge."
 parm: id string array (min = 1, max = 8), description "ID string for VIA 82xx bridge."
 parm: enable int array (min = 1, max = 8), description "Enable audio part of VIA 82xx bridge."
 parm: mpu_port long array (min = 1, max = 8), description "MPU-401 port."
 parm: ac97_clock long array (min = 1, max = 8), description "AC'97 codec clock (default 48000Hz)." 

        # OSS/Free portion
        alias char-major-14 soundcore
        alias sound-slot-0 snd-card-0
	
	# card #1
	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
Nothing. If there a way to check the changes I made?

pmidi -l says as usual:
Code:
$ pmidi -l
 Port     Client name                       Port name
 14:0     Midi Through                      Midi Through Port-0
I don't understand anything.
 
Old 03-24-2007, 08:53 PM   #11
Blyiss
LQ Newbie
 
Registered: Feb 2007
Distribution: Linux debian 2.6.18-3-486 #1 Mon Dec 4 15:59:52 UTC 2006 i686 GNU/Linux
Posts: 24

Original Poster
Rep: Reputation: 15
I fixed it. I inserted the line "options snd-via82xx mpu_port=0x330" into "/etc/modprobe.d/sound". Thus the whole file looks like this now:
Code:
alias snd-card-0 snd-via82xx
options snd-via82xx index=0
options snd-via82xx mpu_port=0x330
It's in Debian Etch that I am currently running. For Fedora Core the file will be "/etc/modprobe.conf", I think. So output from "cat /proc/asound/oss/sndstat" looks like this now:
Code:
Sound Driver:3.8.1a-980706 (ALSA v1.0.14rc1 emulation code)
Kernel: Linux debian 2.6.20.1 #1 SMP PREEMPT Mon Mar 19 18:28:57 EDT 2007 i686
Config options: 0

Installed drivers:
Type 10: ALSA emulation

Card config:
VIA 82C686A/B rev50 with ICE1232 at 0xdc00, irq 10

Audio devices:
0: VIA 82C686A/B rev50 (DUPLEX)

Synth devices: NOT ENABLED IN CONFIG

Midi devices:
0: VIA 82C686A/B rev50 MIDI

Timers:
7: system timer

Mixers:
0: ICEnsemble ICE1232
Rosegarden detects VIA 82C686A Midi device automatically now and doesn't need any special connection changes in qjackctl. Thank you, guys. Your advices helped me understand and fix the problem I had.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
midi keyboard robgig1088 Linux - Software 2 09-05-2006 09:03 PM
Midi Keyboard in Breezy Bad_Bob Linux - Hardware 0 12-28-2005 10:21 AM
USB MIDI Keyboard jeffChuck Linux - Hardware 0 02-04-2005 05:50 PM
midi keyboard & sb audigy 2 chtulu69 Linux - Hardware 1 04-13-2004 07:16 AM
usb midi keyboard jloaf Linux - Hardware 1 10-30-2003 04:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration