From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Dr. Mark Bugeja MD" Newsgroups: gmane.comp.audio.sox Subject: Re: merging mono files Date: Thu, 8 Dec 2016 05:29:47 +0100 Message-ID: <348a5fef-5398-b5ce-1d26-da9735c28f40@gmail.com> References: Reply-To: sox-users@lists.sourceforge.net NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1481171432 31601 195.159.176.226 (8 Dec 2016 04:30:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 8 Dec 2016 04:30:32 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 To: sox-users@lists.sourceforge.net Original-X-From: sox-users-bounces@lists.sourceforge.net Thu Dec 08 05:30:28 2016 Return-path: Envelope-to: gcas-sox-users@gmane.org Received-SPF: pass (sog-mx-3.v43.ch3.sourceforge.com: domain of gmail.com designates 209.85.210.175 as permitted sender) client-ip=209.85.210.175; envelope-from=marcusfb@gmail.com; helo=mail-wj0-f175.google.com; X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=mpc9VLUDlYhG1SWF3KxsE/DtiYfr+cFr9rwxlNK/Xaw=; b=hkCf0uyUDHvsTghxOMekxXuUxXwRwj0EP5HnqS1cJhA9BwKyFrqQtTpN75T4DNfIMx Vi3XJsLaxws/WHeZk2aI6jTNe33pkCUMwLGbCs29ug+i6uRG0RNjtIz3tcPcsNrKrNlc //aMivfYkQDASwkyrugQ24m9+NY/txP67gaDy1UpPBZlrXkxovHmDhzSnSDIDOz/T0zT Bz3DAkGE217VFH9fneBnYhV/0CQQPdQIKEISu1zaQstg3xCGB+z41M0j0HuE4K3oPCWP gzUI+A0BY5JiDgYsG4GT1kjUdhHOM8wUH34EjLTwptwvIde0GCIy3ga7Hj/ZjFteY0GN U4sA== X-Gm-Message-State: AKaTC01T7j+Q3zqauBTFK8oLRa14xnqi5xe07E9WEQncBmIAua7vrU4Py8iTOSRbvoqxlg== X-Received: by 10.194.0.167 with SMTP id 7mr59334469wjf.80.1481171400546; Wed, 07 Dec 2016 20:30:00 -0800 (PST) In-Reply-To: X-Antivirus: avast! (VPS 161207-1, 07/12/2016), Outbound message X-Antivirus-Status: Clean X-Headers-End: 1cEqLO-0006CU-VD X-BeenThere: sox-users@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: sox-users-bounces@lists.sourceforge.net Xref: news.gmane.org gmane.comp.audio.sox:6337 Archived-At: Received: from lists.sourceforge.net ([216.34.181.88]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEqLi-0007Wa-Ea for gcas-sox-users@gmane.org; Thu, 08 Dec 2016 05:30:26 +0100 Received: from localhost ([127.0.0.1] helo=sfs-ml-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1cEqLS-0007Wd-U4; Thu, 08 Dec 2016 04:30:10 +0000 Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1cEqLR-0007WW-2v for sox-users@lists.sourceforge.net; Thu, 08 Dec 2016 04:30:09 +0000 Received: from mail-wj0-f175.google.com ([209.85.210.175]) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) id 1cEqLO-0006CU-VD for sox-users@lists.sourceforge.net; Thu, 08 Dec 2016 04:30:09 +0000 Received: by mail-wj0-f175.google.com with SMTP id v7so378598190wjy.2 for ; Wed, 07 Dec 2016 20:30:06 -0800 (PST) Received: from [127.0.0.1] ([195.158.99.83]) by smtp.gmail.com with ESMTPSA id yg1sm34696880wjb.12.2016.12.07.20.29.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Dec 2016 20:29:59 -0800 (PST) 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 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