[linux-audio-user] Make Stereo WAV out of Two Separate Files and Other Weird Activities

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings:

  Since you want to displense with a GUI:

;;; mono-to-stereo.csd
;;; Csound .CSD file to create one stereo file from two WAV files

<CsoundSynthesizer>

<CsOptions>
-o my_new.wav
</CsOptions>

<CsInstruments>
       sr=44100
       kr=44100
       ksmps=1
       nchnls=2

        instr 1
a1   soundin   "some.wav",0
a2   soundin   "another.wav",0
       outs      a1,a2
       endin
</CsInstruments>

<CsScore>
i1   0   60
</CsScore>

</CsoundSynthesizer>

Run this under Csound so:

    csound mono-to-stereo.csd

and you'll end up with a stereo file composed of your two input WAVs.

The value of 60 in the single CsScore line should be replaced with the 
desired duration of the output file. If it's too short it will truncate 
the output, if it's too long it will simply pad the output with silence.

There you go, no GUI.

Best,

dp




Martin McCormick wrote:

>	Is there a way to take two mono .wav files and
>combine them in to a stereo .wav file?
>
>	The way I imagine something like this is that the utility
>combining the two .wavs would have to pad the shorter of the two
>files out with silence.
>
>	This gives you two independent streams of audio to play with.
>
>	Along the same type of thinking, is there a utility that
>splits a stereo .wav file in to two mono .wavs?  Trust me.  There are
>a number of uses for bending the technology in this way.
>
>Martin McCormick WB5AGZ  Stillwater, OK 
>OSU Information Technology Division Network Operations Group
>
>  
>



[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux