r/linux•
quantumstate

Is there any way to mix the left and right audio channels before they are output to speakers?

Sometimes when I am listening to a song with earphones I find that whoever mixed it decided to create a large difference between the channels such as playing all of one instrument in one channel so you get sound in one ear for a while. Or even worse some pulse between the left and right which I find very irritating to listen to.

I am currently using Ubuntu with pulseaudio on top of ALSA but could change this is necessary. I haven't been able to work out anything other than building myself a hardware mod to just wire together both channels (I think this would work). I would prefer a software solution which gives moer control such as setting the amount of mixing.

Posted Mar 4, 2010, 12:17 AM UTC

812
whataboutthis_hmm•

GStreamer crossfeed plugin (including ubuntu packages)

Works with all GStreamer players.

4
kasbah•

I havn't used this plugin but it seems like this would be the best solution. What you want is crossfeed, i.e. to feed a variable amount from one channel into the other channel, not completely mixing it to a mono track. You could do this in hardware and alot of headphone amps incorporate this but software is probably what you want.

2
quantumstateOP•

This works nicely thanks.

2
whataboutthis_hmm•

Correction: gstreamer-properties doesn't work.

You have to edit the key in gconf: "/system/gstreamer/0.10/default/musicaudiosink" to "crossfeed ! autoaudiosink"

1
mikelieman•

Yeah, a lot of those original Beatles mono->stereo releases really suck. Luckily you can find the a good rip of the Japanese Red Wax 80's mono pressings if you look around. The Sgt. Pepper's is heavenly.

Now, the problem is that by the time you get the 2-track (Stereo) file, all the instruments are fixed in the mix. You can't move the flute off to the center without moving EVERYTHING.

Though there is a concept called "crossfeed" which is relevant to headphones, mixing in low, a little bit of the opposite channel to move the stereo image back to the center a bit. Mileage varies.

3
Blaidd_Dwrg•

I had nothing better to do so I googled it for you.

This thread seems to have helpful advice. I haven't tested it so who knows if it works.

3
aperson•

So, in other words, you want to downmix to mono.

3
DimeShake•

Seriously. It's stereo. It's mixed that way on purpose. Ugh.

3
dmwit•

Very helpful, thanks.

2
kasbah•

What he has described is downmix to mono what he really wants is cross-feed.

1
zubzub2•

What audio player are you using? I'd think that you'd want to set this in the audio player, not the sound system, as otherwise, you'd affect everything.

If you're using xmms, I'd imagine that you could use the xmms speakers plugin:

This plugin is intended to make listening with headphones less fatiguing, by simulating the effect of listening to speakers in front of you. This is especially useful for music with extreme stereo like Beatles songs. The plugin achieves this effect by mixing a bit of the left channel into the right channel and vice versa, and slightly delaying the mix. Some extra realism is added by lowpass-filtering the mixed sounds.

2
zubzub2•

The place I usually run into this is in mod/it/s3m/xm/etc files, which often have very high stereo separation. I use the moc player, and its modplug backend has a simulated surround setting.

2