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 02:36:41 +0100 Message-ID: <4b7caa1b-b4a1-52f4-66b9-3a7755f58d94@gmail.com> References: <20161207210754.6rliezfgvdzgzco3@fastmail.com> <20161208000702.5lguodmrnv322tdi@fastmail.com> <20161208000944.bumm4xfhe7e4kmm7@fastmail.com> Reply-To: sox-users@lists.sourceforge.net NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2516379315915517488==" X-Trace: blaine.gmane.org 1481161041 19755 195.159.176.226 (8 Dec 2016 01:37:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 8 Dec 2016 01:37:21 +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 02:37:17 2016 Return-path: Envelope-to: gcas-sox-users@gmane.org Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of gmail.com designates 74.125.82.49 as permitted sender) client-ip=74.125.82.49; envelope-from=marcusfb@gmail.com; helo=mail-wm0-f49.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; bh=aHgqCAPoD7dRjEFIIKvDPhtcdlYQ6dpZTBAhgn4XlAc=; b=LN/0iWzFfHMqOiojOjG3JEYe/xLJ0XflOMfJg1TffJRpkxWgfLCI0LeUkeG7Gi6OaP rMWyjtiI+qvmOgIeoYJrZpkD41m2bO3Uy4+avstnmf0kj/voevXuNMpMCuD+bz+YYIhu 70z8wQONlgTLqkMYctuYWaHA9sxR3AF5sLPb9QmuvLagxpgGCWxd+MJTJvgLsb/V06Gd xt6qs0Gn4nkZuGBltw36YsRhwzMNgfEG48JKhFPut8FGdDZFRJFOczsy83BJNIdtw5T9 sgCybdMftOhibmpJWvCwP4NU98fBMgEGHLmgOeiJM4ZC0K8UeSKhmdJEYyclKRJo4nsU kI/g== X-Gm-Message-State: AKaTC01PSSNMrUTlBJKFscSjxfOl4q4El2QJ13hnB2SIQ2UwjJEj6FOVnUf51v5Wjv2eEA== X-Received: by 10.28.158.82 with SMTP id h79mr4922214wme.19.1481161011800; Wed, 07 Dec 2016 17:36:51 -0800 (PST) In-Reply-To: X-Antivirus: avast! (VPS 161207-1, 07/12/2016), Outbound message X-Antivirus-Status: Clean X-Headers-End: 1cEndq-0003wo-7Q 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:6335 Archived-At: Received: from lists.sourceforge.net ([216.34.181.88]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEne8-00044Z-CI for gcas-sox-users@gmane.org; Thu, 08 Dec 2016 02:37:16 +0100 Received: from localhost ([127.0.0.1] helo=sfs-ml-2.v29.ch3.sourceforge.com) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1cEndt-00006H-4D; Thu, 08 Dec 2016 01:37:01 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1cEndr-00006C-G8 for sox-users@lists.sourceforge.net; Thu, 08 Dec 2016 01:36:59 +0000 Received: from mail-wm0-f49.google.com ([74.125.82.49]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) id 1cEndq-0003wo-7Q for sox-users@lists.sourceforge.net; Thu, 08 Dec 2016 01:36:59 +0000 Received: by mail-wm0-f49.google.com with SMTP id t79so2452482wmt.0 for ; Wed, 07 Dec 2016 17:36:58 -0800 (PST) Received: from [127.0.0.1] ([195.158.99.83]) by smtp.gmail.com with ESMTPSA id x5sm34198864wje.36.2016.12.07.17.36.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Dec 2016 17:36:50 -0800 (PST) This is a multi-part message in MIME format. --===============2516379315915517488== Content-Type: multipart/alternative; boundary="------------4E0D306A8E400840B876815B" This is a multi-part message in MIME format. --------------4E0D306A8E400840B876815B Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Manually I was able to open a pair of files in Sony Soundforge. Copy the right channel from the R file and simply paste it into the blank channel in the L file. Save. Done. Loops and markers are all left intact. This is the process I'd like to emulate and automate for a number of file pairs. I can handle modification of a bat file to specify different pairs of folders and do a "rank" (instrument or stop) at a time. I can batch process renaming of the files. It's the code that I need to create an appropriate bat file to merge pairs of files from 2 folders. I did find "codes" to do this but I don't understand which parts I would need to modify, if at all, to direct the process to my named folders and the files within. Folder 1 may be called *TrumpetL* Folder 2 may be called *TrumpetR* In each, there are files with identical names: 036-C.wav, 037-C#.wav, 038-D.wav, 039-D#.wav, 040-E.wav.................. 096-C.wav Pairing would involve merging the files sharing the same name, one from each of the two folders, eg 036-C.wav from folder *TrumpetL *with 036-C.wav from folder *TrumpetR *so that the output file would be 036-C.wav (now a stereo file following the merger) into a folder *Trumpet*. What code would I need to achieve this? That's what I am after. On 08/12/2016 02:01, Jeremy Nicoll - ml sox users wrote: > On 2016-12-08 00:34, Dr. Mark Bugeja MD wrote: >> I am trying to understand all the lingo but not getting anywhere. It >> would be simpler for me to try and understand Chinese written >> backwards and upside-down! > First, forget about trying to do all the files automatically. You need > to > find, by trial and error, issuing commands in a command window, a > command > that will take one pair of mono files and produce the merged result you > expect, in the place you expect. > > Next, do you have any experience of writing scripts or programs in any > programming > language? If you do, it's probably easier to develop a script/program > in a > language you understand. If you don't then someone will be able to show > you how > to adapt the command you find for one pair of files, to work for a > subset or > even perhaps all of your files. > > --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus --------------4E0D306A8E400840B876815B Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 7bit

Manually I was able to open a pair of files in Sony Soundforge. Copy the right channel from the R file and simply paste it into the blank channel in the L file. Save. Done. Loops and markers are all left intact.

This is the process I'd like to emulate and automate for a number of file pairs. I can handle modification of a bat file to specify different pairs of folders and do a "rank" (instrument or stop) at a time. I can batch process renaming of the files. It's the code that I need to create an appropriate bat file to merge pairs of files from 2 folders. I did find "codes" to do this but I don't understand which parts I would need to modify, if at all, to direct the process to my named folders and the files within.

Folder 1 may be called TrumpetL

Folder 2 may be called TrumpetR

In each, there are files with identical names: 036-C.wav, 037-C#.wav, 038-D.wav, 039-D#.wav, 040-E.wav.................. 096-C.wav

Pairing would involve merging the files sharing the same name, one from each of the two folders, eg 036-C.wav from folder TrumpetL with 036-C.wav from folder TrumpetR so that the output file would be 036-C.wav (now a stereo file following the merger) into a folder Trumpet.

What code would I need to achieve this? That's what I am after.


On 08/12/2016 02:01, Jeremy Nicoll - ml sox users wrote:
On 2016-12-08 00:34, Dr. Mark Bugeja MD wrote:
I am trying to understand all the lingo but not getting anywhere. It
would be simpler for me to try and understand Chinese written
backwards and upside-down!
First, forget about trying to do all the files automatically.  You need 
to
find, by trial and error, issuing commands in a command window, a 
command
that will take one pair of mono files and produce the merged result you
expect, in the place you expect.

Next, do you have any experience of writing scripts or programs in any 
programming
language?  If you do, it's probably easier to develop a script/program 
in a
language you understand.  If you don't then someone will be able to show 
you how
to adapt the command you find for one pair of files, to work for a 
subset or
even perhaps all of your files.






Avast logo

This email has been checked for viruses by Avast antivirus software.
www.avast.com


--------------4E0D306A8E400840B876815B-- --===============2516379315915517488== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ 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 --===============2516379315915517488== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users --===============2516379315915517488==--