Sox.exe - mixing monophones using stereo music

I have tried all methods of combining sox.exe, including sequencing, mixing, merging, multiplying, etc.

I can't get a mono track to mix with a stereo music track and have a mono track centered in the mix.

Using any of the techniques in which audio files are simultaneously played in mix / drop, removes the mono track to the left channel. I want it to sit nicely in the mix but can't figure out how to make it work.

Any help would be greatly appreciated. It is used in a script package and should be a command that just works without user intervention, defining things on the fly: 2+ files, all play together, keep stereo and mono as they are, outputs one file.

+3


source to share


2 answers


Placing a vocal track in the center means adding it to both channels on the same tom. You can do it like this:

sox -M stereo.wav vocal.wav result.wav remix -m 1,3 2,3

      

Here -M

(or --combine=merge

) tells SoX to merge all channels of all input files. The stereo stereo.wav

channels from will become channels 1 and 2, mono channel from channel vocal.wav

3. The effect then remix

allows you to mix them in different ways. This gives you more control over the process than standard combination methods.

Here 1,3

describes the first output channel as the sum (mixture) of channels 1 and 3, i.e. the original left music channel and the vocal track. Accordingly, 2,3

for the second output channel, means the sum of the desired music channel and the vocal track.



It is possible that clipping is occurring, or that the vocal track is too loud or too soft compared to the background music. If this happens, it can be fixed by adding channel modifiers such as p-5

(turn down the volume by 5 dB):

remix -m 1p-5,3 2p-5,3

      

If the relative volume is ok but cropping occurs, one of the autoscale options may be sufficient to correct it ( remix -a 1,3 2,3

or remix -p 1,3 2,3

).

This works for a known number of input files, where you know you are. Working with any number of mono / stereo input files will require multiple scripts that will separate the mono and stereo files and create the appropriate SoX calls.

+7


source


You can convert Mono vocal sound to stereo using audio format SOX

, then you can mix it with stereo music without any problem.

The following example converts monaural files to stereo. Use the option -c

to specify the number of channels.



$ sox mono.wav -c 2 stereo.wav

source: http://www.thegeekstuff.com/2009/05/sound-exchange-sox-15-examples-to-manipulate-audio-files/

0


source







All Articles