SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm a bit at a loss, and it shames me deeply ;-) Somewhere I'm forgetting something and I just can't put my finger on it.
I have this keyboard (a proteus xboard 61) which I connect with USB. I installed jack and qjackctl, timidity++ and rosegarden on top of what Slack ships with. I don't think I compiled my kernel yet, so it's still the default 2.6.27.7-smp.
I start timidity by default, for which I created a /etc/rc.d/rc.timidity which starts timidity like this: /usr/bin/timidity -iA -B2,8 &
I can play a midifile with timidity and can even open a midifile with rosegarden and play it. (just as a test if the output is configured correctly).
When I plug in the keyboard it doesn't show up in lsusb; however, I see the thing in qjackctl and also in rosegarden.
That's about as far as I get: when I try to record with the thing the events do not seem to "arrive". I could be wrong in my timidity.cfg (doubt that: for one I get sound, for two it simply refers to freepats.cfg which just imports the default pats that come with timidity) or in the jack configuration (very possible), or rosegarden (also possible, but tried too many options to make it logical) or I can be missing something yet... afaik the keyboard sends signals which are picked up by jack which passes it on to timidity to turn stuff into sounds.
I had it working in the past, so I should be possible to redo what I did back then; but unfortunately I can't find what... Hopefully here are some wise people that can slap me on my wrist and tell me what I'm doing wrong yet...
Worth noticing is that I have had rosegarden receiving input from the keyboard, but then nothing was audible. I think that was the point that I started messing up and in a bright moment realized I needed a softsynth, for which I chose TiMidiTy.
Last edited by Ramurd; 03-11-2009 at 09:51 AM.
Reason: solution included
if you here sound that is good. open a terminal and type alsa mixer and make sure the input device is enabled. all the programs run off the alsa. Now I will tell you if you deep into music I am a slack where Nut but I built a planet ccrma from fc9. For one of the profeeors here on campus. so check this out.
Thanks for the reply, checking out alsa mixer is a good one, I did it rightaway and to my amazement alsamixer could not find any mixer elements. That was logical when I checked the asound.names by hand and noticed that the xboard is device hw:0 and the soundcard hw:1; Then checking the mixer elements on hw:1 the inputs seemed OK.
That there are no mixer elements for the xboard is something worth investigating, along with ccrma: I'll have to make some time to see if that's something I'll need.
sorry for the double ;-) But I checked ccrma and followed the link to www.audioslack.com... Now I'm deep enough into music to know a few things, but my Greek is way off, at least the letters look greek to me, but could be anything else instead as well.
ok, thanks and please ignore my ignorance... still seems to lead to nowhere; at least regarding this subject. I'll let that rest for now, until I create some time for literature :-D
Back to the original question, while thinking a bit I came to the conclusion that some (part) of a program does not "see" the keyboard, or probably better said: not correctly. The question arises which application should see the keyboard from (a) hardware or (b) another program. It seems to me that jack should see the keyboard on a hardware level, which it seems to do, then should timidity see the keyboard on a hardware level or a software level (from jack) and is there something wrong with the way I started either timidity or jack, which at the moment is started like this: /usr/bin/jackd -v -R -m -dalsa -r44100 -p1024 -n2 -D -Chw:0 -Phw:1,1 -Xraw -H -M
still seems to lead to nowhere; at least regarding this subject.
Domain squatters got the site back in 2005. WebArchive still has its previous contents (as of February 11, 2005), but it is useless these days anyway, for all the stuff there is for Slackware 10 and 2.4 kernels.
do you have Qt jack control? Go into connect and check the midi tab. Maybe you can connect it there to rosegarden or whatever is running? I want to get a MIDI controller soon let me know how it goes.
dmesg | tail
eth2: no IPv6 routers present
hda-intel: Invalid position buffer, using LPIB read method instead.
usb 6-2: new full speed USB device using ohci_hcd and address 2
usb 6-2: configuration #1 chosen from 1 choice
usb 6-2: New USB device found, idVendor=041e, idProduct=3f06
usb 6-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 6-2: Product: E-MU Xboard61
usb 6-2: Manufacturer: E-MU Systems, Inc.
usb 6-2: SerialNumber: E-MU-1E-3F00-07D60505-909F1-98
usbcore: registered new interface driver snd-usb-audio
lsusb:
Code:
lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 046d:c311 Logitech, Inc.
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 002: ID 041e:3f06 Creative Technology, Ltd
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 046d:c404 Logitech, Inc. TrackMan Wheel
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Good point trying to connect the keyboard to the rosegarden in qjackctl; Unfortunately it does not seem to be allowed. For further debugging purposes I'll post my /etc/asound.names and /etc/asound.conf
Code:
root@slacker:/proc/asound# cat /etc/asound.names
ctl {
alsactl1 {
name hw:0
comment 'Physical Device - E-MU Systems, Inc. E-MU Xboard61 at usb-0000:00:13.1-2, full speed'
}
alsactl2 {
name hw:1
comment 'Physical Device - HDA ATI SB at 0xfe024000 irq 16'
}
}
pcm {
alsactl1 {
name default:1
comment 'Abstract Device - Default Device (Duplex)'
}
alsactl2 {
name plug:default:1
comment 'Abstract Device With Conversions - Default Device (Duplex)'
}
alsactl3 {
name front:1
comment 'Abstract Device - Front Speakers (Duplex)'
}
alsactl4 {
name plug:front:1
comment 'Abstract Device With Conversions - Front Speakers (Duplex)'
}
alsactl5 {
name 'hw:1,0'
comment 'Physical Device - ALC885 Analog (Duplex)'
}
alsactl6 {
name 'plughw:1,0'
comment 'Physical Device With Conversions - ALC885 Analog (Duplex)'
}
alsactl7 {
name 'hw:1,1'
comment 'Physical Device - ALC885 Digital (Duplex)'
}
alsactl8 {
name 'plughw:1,1'
comment 'Physical Device With Conversions - ALC885 Digital (Duplex)'
}
alsactl9 {
name 'hw:1,2'
comment 'Physical Device - ALC885 Analog (Capture)'
}
alsactl10 {
name 'plughw:1,2'
comment 'Physical Device With Conversions - ALC885 Analog (Capture)'
}
alsactl11 {
name surround40:1
comment 'Abstract Device - Front and Rear Speakers (Duplex)'
}
alsactl12 {
name plug:surround40:1
comment 'Abstract Device With Conversions - Front and Rear Speakers (Duplex)'
}
alsactl13 {
name surround51:1
comment 'Abstract Device - Front, Rear, Center and Woofer (Duplex)'
}
alsactl14 {
name plug:surround51:1
comment 'Abstract Device With Conversions - Front, Rear, Center and Woofer (Duplex)'
}
alsactl15 {
name surround71:1
comment 'Abstract Device - Front, Rear, Side, Center and Woofer (Duplex)'
}
alsactl16 {
name plug:surround71:1
comment 'Abstract Device With Conversions - Front, Rear, Side, Center and Woofer (Duplex)'
}
alsactl17 {
name spdif:1
comment 'Abstract Device - S/PDIF (IEC958) Optical or Coaxial Wire (Duplex)'
}
alsactl18 {
name plug:spdif:1
comment 'Abstract Device With Conversions - S/PDIF (IEC958) Optical or Coaxial Wire (Duplex)'
}
}
rawmidi {
alsactl1 {
name default
comment 'Abstract Device - Default Device (Duplex)'
}
alsactl2 {
name 'hw:0,0,0'
comment 'Physical Device - E-MU Xboard61 MIDI 1 (Duplex)'
}
alsactl3 {
name virtual
comment 'Virtual Device - Sequencer (Duplex)'
}
alsactl4 {
name 'virtual:MERGE=0'
comment 'Virtual Device - Sequencer (No Merge) (Duplex)'
}
}
timer {
alsactl1 {
name 'hw:CLASS=1,SCLASS=0,CARD=-1,DEV=0,SUBDEV=0'
comment 'Physical Device - system timer'
}
}
seq {
alsactl1 {
name default
comment 'Default Device - Sequencer (Duplex)'
}
alsactl2 {
name hw
comment 'Physical Device - Sequencer (Duplex)'
}
}
Code:
root@slacker:/proc/asound# cat /etc/asound.conf
pcm.headset {
type bluetooth
}
ctl.headset {
type bluetooth
}
pcm.jackplug {
type plug
slave { pcm "jack" }
}
pcm.jack {
type jack
playback_ports {
0 alsa_pcm:playback_1
1 alsa_pcm:playback_2
}
capture_ports {
0 alsa_pcm:capture_1
1 alsa_pcm:capture_2
}
}
While at it, why not post the patchbay.xml I have atm:
Apologies for the double post, but it suddenly occurred to me that I had it running in the past with KDE 3.5; Due my disliking the aRTS daemon I made the early switch to KDE 4.2. Since this is very sound related, it may just be the thing and reason I'm having trouble. I realized this, since the keyboard is showing up in qjackctl in the Alsa tab, instead of the Midi tab.
In console mode there is a utility called aseqdump which might help with a diagnosis. aseqdump --port nn:n will print midi inputs on the console as they are received from the keyboard. aseqdump -l will list all the available midi ports.
aseqdump -l
Port Client name Port name
0:0 System Timer
0:1 System Announce
14:0 Midi Through Midi Through Port-0
20:0 E-MU Xboard61 E-MU Xboard61 MIDI 1
A brief test with aseqdump -p 20:0, and pushing some random notes on the keyboard shows this:
Code:
aseqdump -p 20:0
Waiting for data. Press Ctrl+C to end.
Source Event Ch Data
20:0 Note on 2, note 75, velocity 108
20:0 Note on 2, note 80, velocity 67
20:0 Note on 2, note 72, velocity 84
20:0 Channel aftertouch 2, value 60
20:0 Note on 2, note 74, velocity 34
20:0 Note off 2, note 75
20:0 Note off 2, note 74
20:0 Channel aftertouch 2, value 76
20:0 Note off 2, note 80
20:0 Channel aftertouch 2, value 78
20:0 Channel aftertouch 2, value 83
20:0 Channel aftertouch 2, value 78
20:0 Channel aftertouch 2, value 51
20:0 Channel aftertouch 2, value 28
20:0 Channel aftertouch 2, value 11
20:0 Channel aftertouch 2, value 0
20:0 Note on 2, note 79, velocity 20
20:0 Note off 2, note 72
20:0 Note off 2, note 79
The events arrive at Alsa, that's what I make from it. It also makes me believe that the chain looks something like this:
keyboard input -> alsa -> jack -> timidity -> back to alsa for outputs
The point here I see is that in jack I somehow only can do stuff with the midi through port, but not with the midi board... I fear that part is putting me at a loss. I could try dumping from the midi-through port, but I think I get nothing... (tested: indeed, no result)
And really thanks all for the constructive help, I going to believe I can get this thing working. If I do, I'll try to write out something nice to help ppl get their midi setup working. Promise :-D
what I see is two sound cards and the sound server not knowing which card to use as a capture device. and when you had arts setup it was set for both devices. This could well be this simple as to have your sound server set up devices for certain inputs. in a terminal type alsaconf. as root. make sure the cards are recognized and configured. then with your sound server configure it for that device input and which device output. I wonder if this is a hal issue will it work as root.
Yes, that was my thought at 1st too when I saw 2 sound cards showing up, at least it seems that way... however, physically there's only one and I do get sound otherwise; except from the keyboard. From what I could gather is that the midi events are not getting passed on to timidity... I'll try to see why there's 2 sound cards and how / if I can make 1 that also works ;-)
With hal I setup sound for audio (or it was that way already); the user is member of the audio group; which should not cause any trouble. I'll try to debug a bit further, thanks for the input!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.