LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Route "Bass" frequencies to separate output device? (https://www.linuxquestions.org/questions/linux-newbie-8/route-bass-frequencies-to-separate-output-device-4175499426/)

xxTyMeador73xx 03-25-2014 12:59 PM

Route "Bass" frequencies to separate output device?
 
Explanation
I'm running the latest iteration of crunchbang Linux (Whaldorf/Wheezy). I noticed one day while listening to Pandora through my USB speakers that an ad had popped up, and was playing through the built in speakers on my laptop at the same time. I checked in my volume mixer (PNMixer 5.1) and sure enough, there were two different output channels going to two different H.W. devices. As a fairly recent convert (and having a long history of Windows diagnostic and repair) This got me very excited because such things just weren't possible on windows.This has me curious.
Question
Would it be possible to isolate low frequencies or "bass channels" and send it to a separate output devices as the rest of the music? to be specific, i want to send bass frequencies to my headphone jack, and the rest of the music to my USB speakers. I'm an experienced programmer and repairman, just a newbie at linux. So I'm up for getting my hands dirty if i have to. Just need a point in the right direction....

Beryllos 03-25-2014 08:43 PM

I have not tried it, and don't have a complete answer, but since there are no replies yet, I'll give it a shot.

You have two audio output devices, namely the built-in audio system and the USB speaker system. The first thing to check is whether you can route the same audio signal to both devices. If so, does it sound like they are simultaneous (no perceptible delay between output devices)? That is the easy part.

The next question is how to separate the high and low frequencies. Does either audio device have any built-in filtering capability, like a bass/treble control or graphic equalizer? If so, that might be sufficient to do what you are asking.

If not, you have to do the filtering yourself. I guess you would have to write code to implement a digital filter that is fast enough to work in real time, takes its input from the source you've selected, and passes the filtered audio data to the two audio devices. I couldn't do it or even tell you how, but I don't see why it couldn't be done. Maybe there is someone on the forum who does real-time or near-real-time digital filtering who could advise you on that.

Note added in editing: Another idea is to build an analog filter to be inserted in the line going to the bass channel. In other words, the audio device outputs the whole signal, and you run it through an old-fashioned analog lowpass filter before it goes to the power amp and speaker. This might be easier than the digital filtering option.


All times are GMT -5. The time now is 01:06 AM.