From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kevin Conder Newsgroups: gmane.comp.audio.sox Subject: Re: merging mono files Date: Wed, 7 Dec 2016 20:15:46 -0600 Message-ID: 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 1481163375 2711 195.159.176.226 (8 Dec 2016 02:16:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 8 Dec 2016 02:16:15 +0000 (UTC) To: sox-users@lists.sourceforge.net Original-X-From: sox-users-bounces@lists.sourceforge.net Thu Dec 08 03:16:11 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.217.182 as permitted sender) client-ip=209.85.217.182; envelope-from=dentalkevin@gmail.com; helo=mail-ua0-f182.google.com; X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=XNP3nlkUHu5zDPrtia/TbsNVTM2pvjEOiqle7ToMgsE=; b=S+mGiw2B3LVpyNW/xTDDVVbNIidiS3QqUBVN9cx1WXzU7DKtsrZdb2+h2rw1xL6A8G 8M3miWOxKQ5aJSENgebLqwniCVGnM5SX6UvorVbpQpSGS7R1mvWI49HH8LZOiUWJiKwB 1ocsRvnjVTuVHXapPyBerS0pzGBs7gThO7bmXUhxvLks3PtS6tlA8butsPSwG4oypVgZ bBF7h+6NGOHLXbKCCrKoOiHQNOvuAaed0fR4MyWyAoW3XnNhUHZXCDveoH9hV8Hol7e3 IzwArGRo3etTT+I8tXz4kyCeEby7pYYyXb/ALHXavmE55Z8GvDQiQh7AgY4TMabTXBAe 8dgA== X-Gm-Message-State: AKaTC02CcqKyaFgV64I8mV6P77V0EN+ObnuovDy/nJLr6eg8Rb171V2yLOehZuVB87LU16fdj9InLTLR7yzK/g== X-Received: by 10.176.5.137 with SMTP id e9mr44741843uae.109.1481163346713; Wed, 07 Dec 2016 18:15:46 -0800 (PST) In-Reply-To: X-Headers-End: 1cEoFU-0006zt-CG 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:6336 Archived-At: Received: from lists.sourceforge.net ([216.34.181.88]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEoFm-0008DA-Qp for gcas-sox-users@gmane.org; Thu, 08 Dec 2016 03:16:11 +0100 Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1cEoFW-0001N7-HI; Thu, 08 Dec 2016 02:15:54 +0000 Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1cEoFV-0001N2-8Q for sox-users@lists.sourceforge.net; Thu, 08 Dec 2016 02:15:53 +0000 Received: from mail-ua0-f182.google.com ([209.85.217.182]) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) id 1cEoFU-0006zt-CG for sox-users@lists.sourceforge.net; Thu, 08 Dec 2016 02:15:53 +0000 Received: by mail-ua0-f182.google.com with SMTP id 12so435133723uas.2 for ; Wed, 07 Dec 2016 18:15:52 -0800 (PST) Received: by 10.103.71.81 with HTTP; Wed, 7 Dec 2016 18:15:46 -0800 (PST) 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 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 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: 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. -- Kevin Conder ------------------------------------------------------------------------------ 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