Re: What´s wrong with my batch script?

AE Photos02 <[email protected]>
Newsgroups gmane.comp.audio.sox
Message-ID <cff49815-6079-4307-9853-b22b21c5b03b@Anderss-iPhone>
  
  

 Okay. I see. I'm doing it on a Mac with bash in terminal. Do I need to do a "for each" and an "echo" or something? Or perhaps specify the thing more? I'm new to bash and Sox.   
  

  
Thanks for any help!   
  

  
  

  
  
>   
> On Sep 23, 2017 at 4:27 PM,  <Jan Stary (mailto:[email protected])>  wrote:
>   
>   
>   
>  On Sep 23 15:10:34, [email protected] wrote:  >  On 2017-09-23 00:26, AE Photos02 wrote:  >   >  Hello everyone.  >   >   >   >  I am making a script that is supposed to mix together 2 separate  >   >  versions  >   >  of the same files. So far so good. Now it has to be able to do this in a  >   >  batch of all files in one folder, to an output file, a mixed file.  >   >   >   >  The idea is to have samples called *sweep1.wav be combined with the  >   >  files  >   >  called *sweep2.wav. So far my script is combining *only* one specific  >   >  *"sweep1"  >   >  file*, the last in my list *(which is number 3)*, with one the correct  >   >  "sweep2" file.  >   >   >   >   >   >  *Here´s the script so far:*  >   >   >   >  -------------------------  >   >   >   >  for file in ./*sweep1*  >   >   >   >  do  >   >   >   >  for file2 in ./*sweep2*  >   >   >   >  do  >   >   >   >  out=COMBINED  >   >   >   >  sox -V4 -m -v 1 $file -v 1 $file2 $file-$out.wav  >   >   >   >  done  >   >   >   >  done  >   >   >   >  -------------------------- This is most probably a shell scripting problem which has nothing to do with SoX.  >   >  for file in ./*sweep1*  >   >  do  >   >  for file2 in ./*sweep2* You are combining every *sweep1* file with every *sweep2* file, overwriting the output over and over again. Of course the last wins. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Sox-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sox-users  
>
>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Sox-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sox-users
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.