Separating left/right channels (voices)
Hi all,
I am working on a problem where I want to extract the left and right channels from a sound file. I am running into a problem where I can not tell if the samples are from the left only, or the right only channels. I have a sound file that is mono, when I play this file through ALSA, the samples come out on both left and right speakers. It seems either ALSA is sending the mono samples to both channels, or my soundcard is doing it. I am wondering if there is a way to control whether a mono sound file can be played to only one speaker using ALSA.
Also, does anyone have a sound file that has one song on the left channel and another song on the right channel? Does anyone know how to generate such a file from two mono files?
Any help is greatly appreciated.
--jc
P.S. I might be confusing the terms 'channels' and 'voices'. I know some people and tools use them differently. Basically, I am using the term 'channels' to mean the left and right parts of a file with stereo samples.
--
Jimen Ching (WH6BRR) [email protected] [email protected]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 11 lines · you
Hi all,
I am working on a problem where I want to extract the left and right channels from a sound file. I am running into a problem where I can not tell if the samples are from the left only, or the right only channels. I have a sound file that is mono, when I play this file through ALSA, the samples come out on both left and right speakers. It seems either ALSA is sending the mono samples to both channels, or my soundcard is doing it. I am wondering if there is a way to control whether a mono sound file can be played to only one speaker using ALSA.
Quoted 4 lines
Also, does anyone have a sound file that has one song on the left channel and another song on the right channel? Does anyone know how to generate such a file from two mono files?
You could do this using audacity
http://audacity.sourceforge.net/
Quoted 7 lines
Any help is greatly appreciated.
--jc
P.S. I might be confusing the terms 'channels' and 'voices'. I know some people and tools use them differently. Basically, I am using the term 'channels' to mean the left and right parts of a file with stereo samples.
- --
Chuck Busby
[email protected]
- --
Any technology which is discernable from Magick is not sufficiently advanced. Arthur C. Clarke
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8r4uG6QsBUxz29H8RAic0AKCsg7h98nvYq6O3xV0kYcr9yL8zKACgnx09 Gczn5z9Z/Mboc8cLFb/40zA=
=OfCM
-----END PGP SIGNATURE-----
Quoted 2 lines
I am working on a problem where I want to extract the left and right channels from a sound file.
sox can do this from the command line.
I am running into a problem where I can not
Quoted 6 lines
tell if the samples are from the left only, or the right only channels. I have a sound file that is mono, when I play this file through ALSA, the samples come out on both left and right speakers. It seems either ALSA is sending the mono samples to both channels, or my soundcard is doing it. I am wondering if there is a way to control whether a mono sound file can be played to only one speaker using ALSA.
alsa-lib does this when you use a "plug" PCM device (which is the default when you install ALSA). if you open a N channel device as an (N-M) channel device, it duplicates the signal across the the missing channels. this can be controlled from your ~/.asoundrc but nobody has written a decent document to explain how to change this. a search of the archives for "ttable" may reveal some ideas, but ...
--p
you can set-up a simple routing plugin in your .asoundrc like:
pcm.plug_convert2 {
type plug
slave.pcm your_soundcard
ttable.0.0 1
}this will route your 1 channel from your mono-file to the probably left channel of your soundcard. you have to set up the rest as the hw-type and ctl too.
____
joy
Quoted 32 lines · Jimen Ching
Hi all,
I am working on a problem where I want to extract the left and right channels from a sound file. I am running into a problem where I can not tell if the samples are from the left only, or the right only channels. I have a sound file that is mono, when I play this file through ALSA, the samples come out on both left and right speakers. It seems either ALSA is sending the mono samples to both channels, or my soundcard is doing it. I am wondering if there is a way to control whether a mono sound file can be played to only one speaker using ALSA.
Also, does anyone have a sound file that has one song on the left channel and another song on the right channel? Does anyone know how to generate such a file from two mono files?
Any help is greatly appreciated.
--jc
P.S. I might be confusing the terms 'channels' and 'voices'. I know some people and tools use them differently. Basically, I am using the term 'channels' to mean the left and right parts of a file with stereo samples.--
Jimen Ching (WH6BRR) [email protected] [email protected]_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel