sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
From: Kevin Conder <dentalkevin@gmail.com>
To: sox-users@lists.sourceforge.net
Subject: Re: merging mono files
Date: Wed, 7 Dec 2016 20:15:46 -0600	[thread overview]
Message-ID: <CALtij8gQhcT=73s-ANXbKHppM85n85Ys4DC-+tsDO67GEHoi3A@mail.gmail.com> (raw)
In-Reply-To: <a65aa7d2-b620-5faa-a30f-c842bb6cc8d7@gmail.com>

On Wed, Dec 7, 2016 at 1:52 PM, Dr. Mark Bugeja MD <marcusfb@gmail.com> 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

  parent reply	other threads:[~2016-12-08  2:16 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <f8656c10-854d-2f07-72bc-0b5016a5401b@gmail.com>
2016-12-07 19:52 ` merging mono files Dr. Mark Bugeja MD
2016-12-07 21:07   ` Peter P.
2016-12-07 21:07     ` Dr. Mark Bugeja MD
2016-12-08  0:07       ` Peter P.
2016-12-08  0:09         ` Peter P.
2016-12-08  0:34           ` Dr. Mark Bugeja MD
2016-12-08  1:01             ` Jeremy Nicoll - ml sox users
2016-12-08  1:36               ` Dr. Mark Bugeja MD
2016-12-08  7:06                 ` Jan Stary
2016-12-07 22:27     ` Dr. Mark Bugeja MD
2016-12-07 23:05       ` Jeremy Nicoll - ml sox users
2016-12-08  0:28         ` Dr. Mark Bugeja MD
2016-12-08  7:12         ` Jan Stary
2016-12-08 10:46           ` Jeremy Nicoll - ml sox users
2016-12-08 10:58             ` Dr. Mark Bugeja MD
2016-12-08 11:45               ` Peter P.
2016-12-08 12:06                 ` Erich Eckner
2016-12-08 13:19                 ` Dr. Mark Bugeja MD
2016-12-08 19:58                   ` fmiser
2016-12-08 20:37                     ` Dr. Mark Bugeja MD
2016-12-08 22:23                       ` Jeremy Nicoll - ml sox users
2016-12-08 23:23                         ` Dr. Mark Bugeja MD
2016-12-09  5:43                           ` Jeremy Nicoll - ml sox users
2016-12-09 12:37                             ` Dr. Mark Bugeja MD
2016-12-09 19:46                               ` Jeremy Nicoll - ml sox users
2016-12-09 20:50                                 ` Dr. Mark Bugeja MD
2016-12-09 13:21                           ` Jan Stary
2016-12-09 13:59                             ` Dr. Mark Bugeja MD
2016-12-09  9:08                       ` fmiser
2016-12-09 11:08                         ` René Bastian
2016-12-09 12:33                         ` Dr. Mark Bugeja MD
2016-12-09 13:36                           ` Jan Stary
2016-12-09 14:03                             ` Dr. Mark Bugeja MD
2016-12-09 12:41                         ` Dr. Mark Bugeja MD
2016-12-09 13:27                         ` Jan Stary
2016-12-09 13:17                       ` Jan Stary
2016-12-09 13:44                         ` Dr. Mark Bugeja MD
2016-12-09 22:48                           ` Jan Stary
2016-12-09 13:02                 ` Jan Stary
2016-12-09 13:38                   ` Jan Stary
2016-12-10  1:21             ` Jeremy Nicoll - ml sox users
2016-12-08 11:00           ` Dr. Mark Bugeja MD
2016-12-08 11:42             ` Peter P.
2016-12-08 13:16               ` Dr. Mark Bugeja MD
2016-12-08 13:47                 ` Doug Lee
2016-12-09 12:49                   ` Dr. Mark Bugeja MD
2016-12-09 13:39                 ` Jan Stary
2016-12-09 14:05                   ` Dr. Mark Bugeja MD
2016-12-08 12:28             ` Jeremy Nicoll - ml sox users
2016-12-08 13:43               ` Dr. Mark Bugeja MD
2016-12-09 13:40               ` Jan Stary
2016-12-09 14:06                 ` Dr. Mark Bugeja MD
2016-12-08  2:15   ` Kevin Conder [this message]
2016-12-08  4:29     ` Dr. Mark Bugeja MD
2016-12-08  4:34     ` Dr. Mark Bugeja MD

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.sourceforge.net/lists/listinfo/sox-users

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CALtij8gQhcT=73s-ANXbKHppM85n85Ys4DC-+tsDO67GEHoi3A@mail.gmail.com' \
    --to=sox-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/sox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).