Re: Fwd: Re: merging mono files

Erich Eckner <[email protected]>
Newsgroups gmane.comp.audio.sox
Message-ID <[email protected]>
Hi,

regarding quantum physics for a one year old: that's not too hard - I've
tried and he already understands, that electrons only have descrete
energy levels and may only absorb/emitt discrete amounts of energy ...

regarding the vb-script:
From Kevins answer, you take everything that's indented (starting at "'
combine.vbs - Combine audio ...'" and ending at "WScript.Echo .."), put
that into a file named "combine.vbs" and execute that file with the
command "cscript combine.vbs" from within a command shell.

If you, however, chose to give up, that's also fine (at least for me).

regards,
Erich

On 11.12.2016 10:38, Dr. Mark Bugeja MD wrote:
> 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 <[email protected]> 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
> 
> 
> 
> ------------------------------------------------------------------------------
> 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
> 
> 
> 
> _______________________________________________
> Sox-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sox-users
>

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

_______________________________________________
Sox-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sox-users
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE3p92iMrPBP64GmxZCu7JB1Xae1oFAlhNKx4ACgkQCu7JB1Xa
e1qw4g//bgwrac2JnQ+nRpQF5O2HSw2lIOQE7QecTxqDB3xVUIvM3ZVsPez55bec
bTk48D9w+OVlpkpi2Gac0pH/N/dAd9MYpD0gbQy+jggO8jAJSC+Pkx1H0nftMkxD
VytvWrcIT4VtYVcz2VN5YilBMIrgOJx2KANwYnmkuYMdUApsbSmbi+t/dtS69cyP
hQrobR2FwFgjdtF2gQIU7Jcq7wq0ZAE1prt6ECM1SAy18wGjV/G7WnE1PBzBRUdH
nqDKdgYCarODQmnQcsqomgWKk2bg43tGl0p1FM+JEA2XBpc1mRod6GCi/qQwmZX3
VY7dXJLyeHINjixglxBYmdu58SYm5GmCXimc6L4Ej9qWIkeDipEIfbFDA5tVAn3z
+Hryt+rvaMa/6t9qESg4zz2Td9JaWvOwuaTWViXZs2SsqUi3R9LPx0ZIZlmYRMLe
4bPoYyaUPZ2lj1aL1FS5wROlFr53JaQSmC29lFyR0t/tTqwpEqrW2fBGpU28+AgY
SovaabshuyYYnApZ5XzOLXJBiX8dbq4w5cT5jEMGHeckZTgVFGH7eDwcz5FAhiNw
z+uL4xDkUPMvgpLyoLBAsumqyQVE0XiYOuH61zSfiVbN9xfOmN3HVenQzIPQ4IVQ
Sgi4TJuaeeUm1IkpsiOwhd0D6tYgeZlRUMTc1fs0keIf9TpFgBU=
=iML+
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.