sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
From: "Dr. Mark Bugeja MD" <marcusfb@gmail.com>
To: sox-users@lists.sourceforge.net
Subject: Re: Fwd: Re: merging mono files
Date: Sun, 11 Dec 2016 10:38:53 +0100	[thread overview]
Message-ID: <d0b757f8-68c9-313b-dddf-3c2435a60ab7@gmail.com> (raw)
In-Reply-To: <CALtij8gGBCpcjQUAahtKVHsC=E+eVy9ySi0kuSOE86QhQch7JQ@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 3398 bytes --]

Thanks all for your willingness and attempts to help in this issue. But 
it's like trying to discuss quantum physics with a 1 year old baby or a 
total moron.

I am hopping off the train. I can't get to understand the language you 
people are so conversant with. From this reply, I don't even know which 
part of the text should be script for the "bat" (or is it "vbs" now) 
file. I am sending all the files back to my friend for him to sort out.

Regards and a Blessed Christmas to all.

Mark


On 11/12/2016 08:44, Kevin Conder wrote:
> On Sun, Dec 11, 2016 at 12:43 AM, Erich Eckner <erich@eckner.net> wrote:
>
>> a quick search for "bash to windows shell converter" on google lead to:
>>
>> http://stackoverflow.com/questions/3200018/how-do-i-convert-a-bash-shell-script-to-a-bat-file
>>
>> wich seems to explain nearly all parts, you need to "translate" the bash
>> scrip from Jan Stary into a .bat file.
> Here's a quick VBScript file that I wrote instead. Make sure you
> change the soxCommand variable to point to where your sox.exe file is
> installed. Change all of the directory variables to your actual
> directory locations before running it. Save the script as
> "combine.vbs" and run it using "cscript combine.vbs".
>
>      ' combine.vbs - Combine audio files from different directories.
>      Option Explicit
>
>      Dim exec
>      Dim file
>      Dim fileName
>      Dim fso
>      Dim leftDir
>      Dim leftFolder
>      Dim rightDir
>      Dim shell
>      Dim soxCommand
>      Dim stereoDir
>      Dim subFolder
>      Dim subName
>
>      ' Make sure these paths are correct before running.
>      soxCommand = "C:\Program Files (x86)\sox-14-4-2\sox.exe"
>      leftDir = "C:\Users\markb\Desktop\instruments\Basson16L\"
>      rightDir = "C:\Users\markb\Desktop\instruments\Basson16R\"
>      stereoDir = "C:\Users\markb\Desktop\instruments\Basson16S\"
>
>      ' Use standard Windows objects.
>      Set fso = CreateObject("Scripting.FileSystemObject")
>      Set shell = CreateObject("WScript.Shell")
>
>
>      Sub CreateDir(name)
>          ' Create a directory, if it does not exist.
>          If Not fso.FolderExists(name) Then
>              fso.CreateFolder(name)
>          End If
>      End Sub
>
>
>      ' Create a directory for the combined stereo files.
>      CreateDir(stereoDir)
>
>      ' Loop through all of the subdirectories in the Left directory.
>      Set leftFolder = fso.GetFolder(leftDir)
>      For Each subFolder in leftFolder.SubFolders
>          ' Create a corresponding subdirectory for the combined files.
>          subName = subFolder.name
>          CreateDir(stereoDir & subFolder.name)
>
>          ' Loop through all of the the files in the subdirectory.
>          For Each file in subFolder.Files
>              ' Execute the sox command for each file.
>              fileName = file.Name
>              Set exec = shell.Exec(soxCommand & " -M " & _
>                                     leftDir & subName & "\" & fileName & " " & _
>                                     rightDir & subName & "\" & fileName & " " & _
>                                     stereoDir & subName & "\" & fileName)
>
>              WScript.Echo stereoDir & subName & "\" & fileName
>          Next
>      Next
>
>      WScript.Echo "Done."
>



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

[-- Attachment #1.2: Type: text/html, Size: 4936 bytes --]

[-- Attachment #2: Type: text/plain, Size: 322 bytes --]

------------------------------------------------------------------------------
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

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

  parent reply	other threads:[~2016-12-11  9:39 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <a4f1ff10-c573-a233-916f-3f92c66bf9ce@gmail.com>
2016-12-08 13:36 ` Fwd: Re: merging mono files Dr. Mark Bugeja MD
2016-12-09 13:51   ` Jan Stary
2016-12-09 14:10     ` Dr. Mark Bugeja MD
2016-12-09 17:48       ` Erich Eckner
2016-12-09 18:58         ` Dr. Mark Bugeja MD
2016-12-09 22:55           ` Jan Stary
2016-12-10  6:42             ` Dr. Mark Bugeja MD
2016-12-10 21:49               ` Jan Stary
2016-12-09 23:41           ` Jeremy Nicoll - ml sox users
2016-12-10  6:44             ` Dr. Mark Bugeja MD
2016-12-10  9:23               ` Jeremy Nicoll - ml sox users
2016-12-10 10:18                 ` Dr. Mark Bugeja MD
2016-12-10 21:53                   ` Jan Stary
2016-12-10 22:28                     ` Dr. Mark Bugeja MD
2016-12-11  6:43                       ` Erich Eckner
2016-12-11  7:44                         ` Kevin Conder
2016-12-11  8:59                           ` Jeremy Nicoll - ml sox users
2016-12-11  9:38                           ` Dr. Mark Bugeja MD [this message]
2016-12-11 10:31                             ` Erich Eckner
2016-12-11 11:16                               ` Jeremy Nicoll - ml sox users
2016-12-11 20:39                                 ` Dr. Mark Bugeja MD
2016-12-11 21:48                                   ` Jeremy Nicoll - ml sox users
2016-12-12 10:41                                     ` Dr. Mark Bugeja MD
2016-12-12 12:12                                       ` Dr. Mark Bugeja MD
2016-12-12 18:00                                         ` Jeremy Nicoll - ml sox users
2016-12-12 18:15                                           ` Dr. Mark Bugeja MD
2016-12-12 18:51                                             ` Jeremy Nicoll - ml sox users
2016-12-12 17:46                                       ` Jeremy Nicoll - ml sox users
2016-12-12 11:31                           ` Dr. Mark Bugeja MD
2016-12-12 18:06                             ` Jeremy Nicoll - ml sox users
2016-12-12 18:35                               ` Dr. Mark Bugeja MD
2016-12-12 19:02                                 ` Jeremy Nicoll - ml sox users
2016-12-12 20:06                                   ` Dr. Mark Bugeja MD
2016-12-11 19:08                       ` Jan Stary

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=d0b757f8-68c9-313b-dddf-3c2435a60ab7@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).