Hi, I shall reply below: On 08/12/2016 03:15, Kevin Conder wrote: > On Wed, Dec 7, 2016 at 1:52 PM, Dr. Mark Bugeja MD <marcusfb@xxxxxxxxx> wrote: > >> Hi guys, >> >> I cannot interact directly on the mailing list for some reason and had to post my question via email. >> >> I have just installed SoX and upon running it I only get a back window appearing momentarily and then vanishes. Consider me a complete noob and treat me with some patience. >> >> I need to combine several mono wav samples to corresponding stereo files. I am running Windows 10 not linux. The files are in folder and named as as follows: >> >> I need to merge corresponding lefts and rights to output as new stereo files in new folders bearing the original name of the instrument (organ stop in this case) and subfolders and I want to ensure the appropriate files are merged together. Identical names exist in the subfolders that bear the release/ tail of a wave profile because each must correspond to the corresponding main file when eventually played in the appropriate software. Those of you who may have processed sound files for jOrgan, GrandOrgue or Hauptwerk know what I am talking about. >> >> How do I get to use SoX for this exercise. Total files I need to process run into 2000+ mono files x 2 to get 2000+ stereo files. That's a lot to process manually!!! >> > Let's break your question into two parts: combining two 1-channel > audio files into one 2-channel audio file and scripting this > combination with multiple files in different directories. > > There is one caveat: I don't have access to Windows 10, I'm using Windows 7. > > 1. Does this sox command work for combining two 1-channel files, > left.wav and right.wav, into one 2-channel audio file: stereo.wav? > > sox -M -c 1 left.wav -c 1 right.wav stereo.wav The bat files seems to run with no error but the stereo file is not created. I am working within the sox folder calling the wav files left and right respectively and having created a Test.bat file and running it from cmd prompt: c:\Program Files (x86)\sox-14-4-2>Test.bat > 2. I would use a scripting language to work with multiple files in > different directories. Do you have Windows Script Host available on > your system? > > a. Go to the command prompt. (Search for "Command Prompt" or "cmd.exe".) > > b. At the command prompt, type this command: > > cscript.exe Miocrosoft (R) Windows Script Host Version 5.812 > If the command returns an error, you don't have Windows Script Host > installed. If you do have it installed, let's see if you can create > and run a VBScript program. Type this command: > > notepad hello.vbs > > This will bring up the Notepad text editor for a VBScript program > called hello.vbs. Type the following text into Notepad, then save and > close it: Done and saved on desktop. > Wscript.Echo "Hello, World!" > > To run the hello.vbs VBScript program, type the following command at > the command prompt: > > cscript hello.vbs > > The command prompt should display "Hello, World!". Let me know if > you're able to complete #1 and #2 to your satisfaction and I'll help > you combine the two to solve your problem. No such message pops up. Instead cmd prompt window raises the error: Input Error: Can not find script file "c:\hello.vbs" But if I place the vbs file in the sox folder and run the cmd: c:\Program Files (x86)\sox-14-4-2>cscript hello.vbs then yes.... I get Hello, World! on the cmd window --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today.http://sdm.link/xeonphi _______________________________________________ Sox-users mailing list Sox-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/sox-users