From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3561 216.34.176.0/20 X-Spam-Status: No, score=-2.4 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS, T_DKIM_INVALID shortcircuit=no autolearn=no autolearn_force=no version=3.4.0 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id F37A42047F for ; Sun, 24 Sep 2017 17:21:49 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=sfs-ml-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.89) (envelope-from ) id 1dwAbD-0000qD-PA; Sun, 24 Sep 2017 17:21:47 +0000 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.89) (envelope-from ) id 1dwAbC-0000q6-Im for sox-users@lists.sourceforge.net; Sun, 24 Sep 2017 17:21:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Type:MIME-Version:Subject:Message-ID:To:From:Date; bh=uOYvQDhEfJQ5suD5hvm44MkvQyo2WmO30WAUnKAvPjc=; b=TpknCTI+e0ZkHwZeY7aCXSQghRxC4Iw140iz+c0PewRPQYhzP8qcvdll9cdXwphyYXCeTwcYjYvi/L3QIzAcDuVb6lqWRLcKBByh4Uu4kkfLyvsTAOJxHsIt6XITCNdfQzOcRW7mMZO9JrlDhaB9qEgzpucXzoYHGcGVfFXqJHM=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x; h=Content-Type:MIME-Version:Subject:Message-ID:To:From:Date; bh=uOYvQDhEfJQ5suD5hvm44MkvQyo2WmO30WAUnKAvPjc=; b=SrACz3MeoyXcRZEpWa0do5OHwEfabMk/uae8cQj5Bo+jBW/iUXrmIUBImducPqO37hnEJwgRDsnIkl+bp3yoiwSPlKUK75lh74PcflFgDUZ2Cy+3xfrSHOdVLaq39crDzA6yT4CdWI44gWcQJaysfrpfvVbrzl31aOAaTa9IcJM=; Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of gmail.com designates 209.85.128.182 as permitted sender) client-ip=209.85.128.182; envelope-from=aephotos02@gmail.com; helo=mail-wr0-f182.google.com; Received: from mail-wr0-f182.google.com ([209.85.128.182]) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) id 1dwAbB-0002I8-Ek for sox-users@lists.sourceforge.net; Sun, 24 Sep 2017 17:21:46 +0000 Received: by mail-wr0-f182.google.com with SMTP id v109so4311367wrc.1 for ; Sun, 24 Sep 2017 10:21:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version; bh=uOYvQDhEfJQ5suD5hvm44MkvQyo2WmO30WAUnKAvPjc=; b=X8CWJmZDajyFMSnPA430t3ZVyX1g4oyHL3uSqkjCYkNJ9mp/w2G8Lo/MK/MeTCxwfr tZsfMcN/E3L7JDNQQYh32GpF2MfHHKkpNajOOyzXtk1dMztszgJdnNr7WmK1WpjcMboH qwOnz1Jlw4k3bcqfs3R+QcS878etljPs+Hh7fRkMtHThRCeNQBpb0ZSPRUmiDUYyD6Yh 3nUDbtxF1g3jjFCTHQuRfjgYH1WkjQ3DKDFiW8iXGmZeNE5vAVOLIX9MMeSrK1n4dHre vNp9Oe7R5dY+NRnxPwA6uGkseB3uBoJ2avin6HorlqnHWBU6zG9GgVX/UZ+kq5X9rmsM 40aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:message-id:subject:mime-version; bh=uOYvQDhEfJQ5suD5hvm44MkvQyo2WmO30WAUnKAvPjc=; b=tDTQddw+3An76ncZdaxXwcQmqVjepQnF80ZJqeM4zHunKeQpqsTK4sK1/ecsT/qXMQ 1dT0w7kMB82xK00JceB54+FYcuChjQM1KTTrXbtjAXDWs6008LpxhMmADANkFbBRSm4q oyQLq2XLvNAaFcITbv4eu4Xfm+EjDp814HE+CIf/4S5X9aiJE1cihoh4yoZsaIRBlR7S ZXyKTeX9lmU2X8InMdaDhhyIff1Li0KkLagT6xAW8Dyv/HiNbq6HNCkso837koOG0wD9 iIaW4CeuvDhnJn28TLlhIjqCl5aL62j86Kj6O+dlK/qE4GdDnlc1gQRAhz8/DM/mMTUo KkpQ== X-Gm-Message-State: AHPjjUhrLzOH/jAlwMMagU/Y+3ZttQxu9YPWyuFCDOvhftGE/68xudme H0xd1x3RUuHoL46px560w0TRuGkL X-Google-Smtp-Source: AOwi7QC8G5x2/uoo/a3XFmqqwKiLVhtq2ypO0tuKYm3Z/dkwZ4FvekVcyT3MFDhF0oK4PoCrQDph5Q== X-Received: by 10.46.5.88 with SMTP id 85mr1756621ljf.63.1506273698986; Sun, 24 Sep 2017 10:21:38 -0700 (PDT) Received: from [10.1.213.112] (c-5eeaaa8c-74736162.cust.telenor.se. [94.234.170.140]) by smtp.gmail.com with ESMTPSA id f11sm706263lfb.60.2017.09.24.10.21.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Sep 2017 10:21:38 -0700 (PDT) Date: Sun, 24 Sep 2017 19:21:36 +0200 From: AE Photos02 To: Sox-Users Message-ID: MIME-Version: 1.0 X-Headers-End: 1dwAbB-0002I8-Ek Subject: =?UTF-8?B?UmU6IFdoYXTCtHMgd3Jvbmcgd2l0aCBteSBiYXRjaCBzY3JpcHQ/?= X-BeenThere: sox-users@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sox-users@lists.sourceforge.net Content-Type: multipart/mixed; boundary="===============0183995649993196901==" Errors-To: sox-users-bounces@lists.sourceforge.net --===============0183995649993196901== Content-Type: multipart/alternative; boundary="59c7e9a0_6b8b4567_3ed" --59c7e9a0_6b8b4567_3ed Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =20 =20 Okay. I see. I'm doing it on a Mac with bash in terminal. Do I need to d= o a =22for each=22 and an =22echo=22 or something=3F Or perhaps specify t= he thing more=3F I'm new to bash and Sox. =20 =20 =20 Thanks for any help=21 =20 =20 =20 =20 =20 =20 > =20 > On Sep 23, 2017 at 4:27 PM, wrot= e: > =20 > =20 > =20 > On Sep 23 15:10:34, jn.ml.sxu.88=40wingsandbeaks.org.uk 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 outp= ut file, a mixed file. > > > > The idea is to have samples called= *sweep1.wav be combined with the > > files > > called *sweep2.wa= v. So far my script is combining *only* one specific > > *=22sweep1=22= > > file*, the last in my list *(which is number 3)*, with one the c= orrect > > =22sweep2=22 file. > > > > > > *Here=C2=B4s th= e script so far:* > > > > ------------------------- > > > = > for file in ./*sweep1* > > > > do > > > > for file2 in= ./*sweep2* > > > > do > > > > out=3DCOMBINED > > > = > sox -V4 -m -v 1 =24file -v 1 =24file2 =24file-=24out.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 engag= ing tech sites, Slashdot.org=21 http://sdm.link/slashdot =5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F Sox-users mailing list S= ox-users=40lists.sourceforge.net https://lists.sourceforge.net/lists/list= info/sox-users =20 > > =20 =20 =20 --59c7e9a0_6b8b4567_3ed Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Okay. I see. I'm doing= it on a Mac with bash in terminal. Do I need to do a =22for each=22 and = an =22echo=22 or something=3F Or perhaps specify the thing more=3F I'm ne= w to bash and Sox. 

Thanks for any help=21 


On Sep 23, 2017 at 4:27 PM, <Jan Stary> wrote:

O=
n Sep 23 15:10:34, jn.ml.sxu.88=40wingsandbeaks.org.uk wrote:
> On 2017-09-23 00:26, AE Photos02 wrote:
> > Hello everyone.
> > =20
> > I am making a script that is supposed to mix together 2 separat=
e
> > 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 fi=
le.
> > =20
> > 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 sp=
ecific
> > *=22sweep1=22
> > file*, the last in my list *(which is number 3)*, with one the =
correct
> > =22sweep2=22 file.
> > =20
> > =20
> > *Here=C2=B4s the script so far:*
> > =20
> > -------------------------
> > =20
> > for file in ./*sweep1*
> > =20
> > do
> > =20
> > for file2 in ./*sweep2*
> > =20
> >     do
> > =20
> >         out=3DCOMBINED
> > =20
> >         sox -V4 -m -v 1 =24file -v 1 =24file2 =24file-=24out.wa=
v
> > =20
> >     done
> > =20
> > done
> > =20
> > --------------------------

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=21 http://sdm.link/slashdot
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
Sox-users mailing list
Sox-users=40lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users
--59c7e9a0_6b8b4567_3ed-- --===============0183995649993196901== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot --===============0183995649993196901== 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 --===============0183995649993196901==--