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 DE10D202A5 for ; Fri, 22 Sep 2017 23:26:52 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.89) (envelope-from ) id 1dvXLP-0006NS-6E; Fri, 22 Sep 2017 23:26:51 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.89) (envelope-from ) id 1dvXLN-0006NJ-Pu for sox-users@lists.sourceforge.net; Fri, 22 Sep 2017 23:26:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Type:To:Subject:Message-ID:Date:From:MIME-Version; bh=zSnFdFo1VBFFNse7y7+AS73bBlTov8GKHtLe5ki8bdM=; b=ba54aQBcMsHgD/LRD3G5FYgUdxLi80xay4BuO0JMlSu9wSjHKVnz89XjRJHOhO653FtyAtm3KbOwMsnFyvlVJfCbZA8J6w/iJsQ1PNRHU1p/Uy7V9cb4eyskp6lXhJz64o/EaQRRotEw7tKM9s5KB9mW6rdJCPGiYutqK3Fmwi4=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x; h=Content-Type:To:Subject:Message-ID:Date:From:MIME-Version; bh=zSnFdFo1VBFFNse7y7+AS73bBlTov8GKHtLe5ki8bdM=; b=hUpuHmkxILXK9u+Bc7klVrP6UjqmdJoL8EGwMkkTnAVhZEV+Yvvnox+iDwWmm8MqnqnU0ZGmV2JXa9bVKdoJi8g/dB7NBpWHsBuLim8T/nLX3BC45bjv06Efsvt5PNgxj7x3ZT3jqAFjcdUYm0TkBHOHc6OOzSddSWKWY1VnSPM=; Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of gmail.com designates 209.85.223.171 as permitted sender) client-ip=209.85.223.171; envelope-from=aephotos02@gmail.com; helo=mail-io0-f171.google.com; Received: from mail-io0-f171.google.com ([209.85.223.171]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) id 1dvXLM-0005m7-Sk for sox-users@lists.sourceforge.net; Fri, 22 Sep 2017 23:26:49 +0000 Received: by mail-io0-f171.google.com with SMTP id n69so5825890ioi.5 for ; Fri, 22 Sep 2017 16:26:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=zSnFdFo1VBFFNse7y7+AS73bBlTov8GKHtLe5ki8bdM=; b=OZ9nL3kqEtgKCjcyowoAuKkQk1q4WgxJOPolieEmpTdnhOMpPgX0eTuNpQ9PE/GZSv yQ8WceijWU+k+s94HGgOOEl72DDHy13P1IxDme17MacG8fyJKQgOimv4V6eZjFCOzHy9 9+gfGFPPApOwIrN50va0oNy5ba9f5h1VXpZ8588vzvVcLaOomdjQNzIHaj82e3jKws9K Si05VWdrcCcXTGlpkNt56rQVKXHRPm6KHfR6TllTtFtDnFlpOl1PHrL0Ld1Y7UBgxPp6 Q86FZVNsX2EIFaFT1f99ItKd4rBHChoI0ZsP2cH8C3rpkfGQS9xJDXNriOl0m7vSpTZt +0Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=zSnFdFo1VBFFNse7y7+AS73bBlTov8GKHtLe5ki8bdM=; b=a3CEClIHxDFEYyJPr3wCrFjClsrQscGn3Dn8kReyFUweeidgMQgSg7TXU3uxNGlvkG LYIorJ6qBti/5FE76vAgsEuj7T3hZrFPaEFNAdwBQk8VfAro+eHRH0IbXjCVK2wNJxx6 e4X/6pQvz4c0Iv6Mvp5mATTwr2xpd/27idDYmeI9eEhyy2cjyKcbFDTzn4hy4O0Sgt1d ElpPypFOOrC6vEfph+q6BS+MVwjhX31bWEp96qRyh/OzFlpvDNHoGP5EHlX/ToCKd3Wo rnvv1tZsTcb+NrLngzyxvk01fDRgxxetBDQEFRuvukaaZ3ec3dsXe2hXmtRj4x5K7tP0 GMyg== X-Gm-Message-State: AHPjjUiO8ecEBumpYbRC6LzD12ZQ/RBh4qw/EBk4l9Es/DRecGfMrezn yW5m3xh5QK5OoqBknWGHMxtKwknL+wWux13dM5peDQ== X-Google-Smtp-Source: AOwi7QBq2heTHuL1tL5i4Y2CnFpmI8Cs6RXrrFJpwtKxDieKzcxz3EJj3oAaBu2Z/KEAPSRuJhljWFZR+wcRcSOM5IY= X-Received: by 10.107.68.22 with SMTP id r22mr1121509ioa.85.1506122803326; Fri, 22 Sep 2017 16:26:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.138.96 with HTTP; Fri, 22 Sep 2017 16:26:42 -0700 (PDT) From: AE Photos02 Date: Sat, 23 Sep 2017 01:26:42 +0200 Message-ID: To: sox-users@lists.sourceforge.net X-Headers-End: 1dvXLM-0005m7-Sk Subject: =?UTF-8?B?V2hhdMK0cyB3cm9uZyB3aXRoIG15IGJhdGNoIHNjcmlwdD8=?= 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="===============4818178213757190448==" Errors-To: sox-users-bounces@lists.sourceforge.net --===============4818178213757190448== Content-Type: multipart/alternative; boundary="089e0825fb8cae360e0559cf8a60" --089e0825fb8cae360e0559cf8a60 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 *"swe= ep1" file*, the last in my list *(which is number 3)*, with one the correct "sweep2" file. *Here=C2=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 -------------------------- As you may see I have put -v 1 in front of both of the files. If I do not, the two files will be mixed with a linear gain of 0.5, I guess half of its linear gain value. Hope someone can see my error here. The output should be the combination of the two first files with the same file name tokens. The method is "mix", -m. --=20 Best regards Kristopher --089e0825fb8cae360e0559cf8a60 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello everyone.=C2=A0

I am making a scr= ipt 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 i= n one folder, to an output file, a mixed file.=C2=A0

The idea is to have samples called *sweep1.wav be combined with the file= s called *sweep2.wav. So far my script is combining only one specifi= c "sweep1" file, the last in my list (which is number 3= ), with one the correct "sweep2" file.=C2=A0


Here=C2=B4s the script so far:
-------------------------

for file in ./*sweep1*

do

for file2 in ./*sweep2*

=C2=A0 =C2=A0 do

=C2=A0 =C2=A0 =C2=A0 =C2=A0 out=3DCOMBINED

=C2=A0 =C2=A0 =C2=A0 =C2=A0 sox -V4 -m -v 1 $file -v= 1 $file2 $file-$out.wav

=C2=A0 =C2=A0 done

done

--------------------------


As you may= see I have put -v 1 in front of both of the files. If I do not, the two fi= les will be mixed with a linear gain of 0.5, I guess half of its linear gai= n value.=C2=A0

Hope someone can see my error h= ere. The output should be the combination of the two first files with the s= ame file name tokens. The method is "mix", -m.=C2=A0


--
Best regards
Kristopher

--089e0825fb8cae360e0559cf8a60-- --===============4818178213757190448== 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 --===============4818178213757190448== 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 --===============4818178213757190448==--