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=-3.1 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS,T_DKIM_INVALID shortcircuit=no autolearn=ham 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 E9DF520281 for ; Sat, 23 Sep 2017 14:27:17 +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 1dvlOm-0002yI-Qr; Sat, 23 Sep 2017 14:27:16 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] 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 1dvlOm-0002yB-97 for sox-users@lists.sourceforge.net; Sat, 23 Sep 2017 14:27:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=In-Reply-To:Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date; bh=PAzOmQMRDZcn8BmfEbB884tSrETDrymwatY3YTyByV8=; b=d/JFGvj01noxJ56PK76ac5/1t0lQSbAX93s2odwuaw0DYLtXf11YCj4Kh0L2+KQtXKzwea02CfFk30CWzx1eAHFYJfcDMb/lpQBum6Mys2wBX1Y8W8u5qXyKS+1m2e/Knzp/fhJe47VZtjqRGEAimbiV2nU1t3+VDZsvVFwsYl4=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x; h=In-Reply-To:Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date; bh=PAzOmQMRDZcn8BmfEbB884tSrETDrymwatY3YTyByV8=; b=duNy/zZaBurZ2UVBvJLmQ8mfD65ot0+dXybjAZBxLhFAubSMKke7emWdimRb8YAtHE45VERsu62sT9IpIvLT9rxuazNiPLSfp96jMQHR68AuOVxDDa29f7u2o3fRC4dptpywp+7rr8VPucXJAGanDiAzo1w1A04ROz7BECozJ1s=; X-ACL-Warn: Received: from mx.stare.cz ([79.98.77.229]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1dvlOi-0007cI-Tk for sox-users@lists.sourceforge.net; Sat, 23 Sep 2017 14:27:16 +0000 Received: from www.stare.cz (localhost [127.0.0.1]) by www.stare.cz (OpenSMTPD) with ESMTP id aa080681 for ; Sat, 23 Sep 2017 16:27:05 +0200 (CEST) Date: Sat, 23 Sep 2017 16:27:05 +0200 From: Jan Stary To: sox-users@lists.sourceforge.net Message-ID: <20170923142703.GA39919@www.stare.cz> Mail-Followup-To: sox-users@lists.sourceforge.net References: <05b65cb2ca6f227c796247829198a0c9@wingsandbeaks.org.uk> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <05b65cb2ca6f227c796247829198a0c9@wingsandbeaks.org.uk> User-Agent: Mutt/1.7.1 (2016-10-04) X-Headers-End: 1dvlOi-0007cI-Tk 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: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: sox-users-bounces@lists.sourceforge.net On Sep 23 15:10:34, jn.ml.sxu.88@wingsandbeaks.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 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=B4s the script so far:* > > = > > ------------------------- > > = > > for file in ./*sweep1* > > = > > do > > = > > for file2 in ./*sweep2* > > = > > do > > = > > out=3DCOMBINED > > = > > 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 Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users