You are not logged in.
I'm trying to do the following with little success so far:
A sample test case:
Input:
electric bass plugged into via usb cable (shows up as C-Media USB headphone set)
youtube video (via firefox, etc) or any sound file (via moc, etc).
Output:
headphones via motherboard out.
I can listen to youtube videos just fine through headphones and can simul play music if I desire.
I can record the electric bass via audacity and play back through headphones.
However I can't figure out how to monitor/mix in the bass real time.
I tried pulse audio and jack both and couldn't figure out how to set up connections to do this.
Any quick pointers, etc to set this up? I would prefer this without pulseaudio of course since I tend to keep that disabled.
Thanks!
Last edited by bnolsen (2014-06-02 17:23:55)
Offline
What exactly do you mean with monitor and mix bass? In a specific application? Which one? Monitor with headphones only? What is your hardware? PC, laptop? I would go with Qjackctl and jack2 if you have a multi core processor. You can set up jack using qjackctls gui to duplex and using patchbay interconnect input from your bass guitar to whatever uses jack. There are some jack specific applications for effects and mixing like jackmaster, jack-rack and others that might interest you.
Offline
System I'm interested in doing this is an older athlon II x4 640, 8GB ram, used to be a secondary dev machine.
If the title wasn't clear enough this is what I want to do.
Play backing tracks using local player (could be youtube, or any mp3/ogg files I have).
Play bass through usb cable that plugs into the computer.
Hear both at the same time through system headphones.
I can get signal from the usb cable through audacity only.
qjackctl has pretty poor descriptions of the items available for connect and trying them in combination didn't get any sound.
Offline
Did you set input from the usb and output from the integrated sound card in qjackctls setup page (it needs duplex option to get both input and output)? Enable the monitor option, then your bass should be heard.
You could do it in alsa only also if you prefer that, but you probably would need to define a [capture] pcm for the usb device, since the default one is probably the integrated sound card. Run 'aplay -l' to check. Mixing purely in alsa will require some more configuration though, especially when multiple sources with multiple volume levels are required.
You get it through audacity since it is using direct input from the usb card. What does 'arecord -l' say?
Offline
okay just replaced old jack with jack2.
the ones of interest are as follows:
**** List of CAPTURE Hardware Devices ****
card 3: Set [C-Media USB Headphone Set], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0can't this be easier?
Last edited by bnolsen (2014-06-02 21:44:15)
Offline
can't this be easier?
Well, that would be a job for PulseAudio then, but I do not use it any more, so I can be a little of help in that case.
Which way to you want to go? Jack or Alsa?
Offline
pulseaudio isn't helping any. The only bonus with pulseaudio is I can get a visual that the audio device can capture.
I think jack makes the most sense here, alsa is supposed to mostly deal with hardware. Not impressed with feedback and I wonder how the hell someone would be able to begin to set up a game like rocksmith 2014 even if it were available on linux.
But anyways need to figure out how to get this to work.
Offline
Set up jack using qjackctl like I suggested. If you have no sound from the bass, go to Connections, you should have input (capture) from system on the left. If you select them and the relevant system output on the right and connect them, sound from the bass should be heard. Reproduce that with Patchbay using [jacks] regex, if you want to keep that connection for next time. Do the same for other sources, like playing audio from a mp3 or youtube using mpv.
You can then install packages for jack I mentioned and get them in between the input and output, so that you can control it. Wiki on pro audio should be of interest. Other than that, there are other specialized distributions/variants like ArchAudio, Ubuntu Studio and so on, probably be more suited for your needs.
Offline
This isn't for anything professional I just want to occasionally pick up a bass and practice while at work.
Back to basics this works at least with substantial lag.
arecord -D hw:2,0 -f S16_LE -c 2 -r 44100 | aplay
okay I finally did get it to work through jack. I don't think I quite understand how the qjackctl settings tab works.
I guess I was assuming it might allow device specific settings, like allowing multiple input and outputs devices to be defined, etc.
I'm not seeing how things would work if I were to plug in yet another instrument cable for an electric guitar and perhaps additionally plug in a midi cable from some electronic drums (well the midi part shouldn't be too bad, done that before with jack).
Offline
You could try reducing the buffer and period size of both arecord and aplay to minimize latency (that is one of the main reasons why jack is recommended, since you can get latency down to several milliseconds).
I have not tested this, so I assume when you want to expand, you would run multiple jack servers on different interfaces and then connect them (should be possible using netjack or similar, or maybe even directly). Look here on this topic (using cache since its down for me at the moment).
It should be possible to set up custom alsa configuration for virtual hardware and run jack on top of that also, have not tested that scenario either. My interface has enough inputs and outputs for my needs.
I guess I was assuming it might allow device specific settings, like allowing multiple input and outputs devices to be defined, etc.
It should to some extent, what were you trying to define?
Offline