From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (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 B57351FA04 for ; Wed, 27 May 2020 08:09:55 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1jdr8H-0005XN-PX; Wed, 27 May 2020 08:09:49 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdr8C-0005X4-NN for sox-users@lists.sourceforge.net; Wed, 27 May 2020 08:09:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=MIME-Version:Content-Type:In-Reply-To:References: Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=5smCe75LCJ9dQDR2+BePscOlju9gyg6zpupT1+iw8HM=; b=DRcpESkX9QFkGg4MpLfBIbdY35 hSF18meNoShen7XZ+k/O08PXczqdaZYunCunD1qbPyc7IHhXazNzMpqEyEa6E3Kv1x2Auh7THbH3l pHuEB/9XxsHYGotfuqpWZGtTpej5F7pfL0ahxrZQF3xQrg2WWThVxzaVY/m/L93NzaqU=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=MIME-Version:Content-Type:In-Reply-To:References:Message-ID:Date:Subject: To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=5smCe75LCJ9dQDR2+BePscOlju9gyg6zpupT1+iw8HM=; b=BNua926R4fTFeOxEOscGZxvp0Q 2CIic4Syw3I9qDdqWH4sw/5K0X4IEQtsvRznB/9HVvghjjT1v8Waqb6fMAatGoqZfeR5zKtcqS06s 3y2+bh6yDmEu2dOitFBvA5jhnLJJmHEKLOg+fPOyF65OT2j2UiqwiMNP9ucSLayr1+eE=; Received: from mail-oln040092074024.outbound.protection.outlook.com ([40.92.74.24] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1jdr85-008vAv-3x for sox-users@lists.sourceforge.net; Wed, 27 May 2020 08:09:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jhq0XMburi4p6u9BIxV3wgXasBU4sGRRS3s3TyGjtlSzgs7GDYO39GO755I5NMfARU0fJ3JzmjBTRAlCo/tgFoL1fxuT3xQZJLmpPgOr7r7YaJUI22DTZEWNRWqXV8PEMxc0P1wgkXIN0R4nNwHjd8WlBty9OljgGO8U5PFWecJ/XGiLJx3A2powi7kMcEIK0ujiLAJ8sM0KsmHIcFd6b03yYyUXcYkq3hEWv9gRJrqPQse9KysF0efVrYO1s+UPz8lKu/N8Q1eMEFCi05/e2Ou6cbYU/ZIVq/hYg8B47V8N6YGukqCbXjNR8C9/SyRxksS4ft1ITnkJ0a9g/UUvuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5smCe75LCJ9dQDR2+BePscOlju9gyg6zpupT1+iw8HM=; b=JdgrHQzrhCJCFa9Dr+IX1Bkg5XBDtKzXk3zKrCpipDHehAsJbUvDw9m6r/YMbCrkV/nSdxSGQkgedGkGo9Y40fE8XCN4fFW+v/oXr5sYYB/OJr2nocd+mfgQrRLI2ulp5l5ggflURM97LNsRmFrxLB9pvasrnWyuODMgn3gjfjNcrqV3kuYmVIY3q/mrm44FzWuaiZPAv92A/1/2fg4CexKQHO4rg4ZVlMvMWuIK8Wr6ieM+S/5WPhPJXUvSyIL0L6Ms06aLcm8ywMPLhnIg6n7QsXRUjRxUFAXPHOx85pijMYRrAlAv87iTlWhKDAZHiSBhowu/dD0rM9td1dy7fg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5smCe75LCJ9dQDR2+BePscOlju9gyg6zpupT1+iw8HM=; b=Jr8GNVOHwxulv/8i98fNYeP/mrzzUDojcYoZOxz07WZGg7ytfmi7QKCZiC+v8jy5Sm8YK5DFsYQuG/BXpGWF+mXFOtRAnKb2mt2SSuTewj9tsjP+xvZzt29fg+yRMgarSb59dFT837zDREHtK4ybOdJkAEitB0k8Q5uOK+f27TEG6zvNqc8ZDpo70LlRhVif9HEDGh9DyjMWhEff4D2lylMd1smQfaEYL4aP1KvEhCMsKZETJtDWS+GUcKLiA66nuf0ow2DVzoyVsDLVCmM4+t8enHnOVTmuCaJLsVHEmEA3sigqUrI+LXgAloKUWZvsfkHcpod8wy7+op9hxFjK5Q== Received: from HE1EUR04FT023.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::41) by HE1EUR04HT141.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0d::367) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23; Wed, 27 May 2020 08:09:29 +0000 Received: from HE1PR0102MB3225.eurprd01.prod.exchangelabs.com (2a01:111:e400:7e0d::45) by HE1EUR04FT023.mail.protection.outlook.com (2a01:111:e400:7e0d::282) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3045.17 via Frontend Transport; Wed, 27 May 2020 08:09:29 +0000 Received: from HE1PR0102MB3225.eurprd01.prod.exchangelabs.com ([fe80::6432:698e:9b0b:4689]) by HE1PR0102MB3225.eurprd01.prod.exchangelabs.com ([fe80::6432:698e:9b0b:4689%3]) with mapi id 15.20.3021.029; Wed, 27 May 2020 08:09:29 +0000 From: Nils Wallgren To: "sox-users@lists.sourceforge.net" Thread-Topic: [SoX-users] BatchProcessing Files on Windows Thread-Index: AQHWM6uwj7/NdXt6EUCSeQ3IbMcrTai7EkAAgABt9zI= Date: Wed, 27 May 2020 08:09:29 +0000 Message-ID: References: , In-Reply-To: Accept-Language: sv-SE, en-US Content-Language: aa X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:9B0AD90A357FA2731E65DFEFC60655C9163B2F7328FD3EC0F117023C0FB09F71; UpperCasedChecksum:677CF1D84B41DCA3E4FDE9F0543EEA3752A211AE0ED23F5590C7D92023DBEA8F; SizeAsReceived:7037; Count:44 x-tmn: [+2ozD8eIo72TzwmDJfnqpRFXwrtLE1RR] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: c7fc7c2a-682f-4c61-3b00-08d8021547ec x-ms-traffictypediagnostic: HE1EUR04HT141: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 14To7F4uhVkbuAfVYrRep0/bZqHMwGH8y34aL6BSk9XXp/qbOhVllqZebQuyjPNRCgoe44pNdbABpqS/f7ETQljhJ+gJUCtpIXA7Gy8xNsLasnLKbeVJe8vz1wOlpAAqQFus+aVB6vrDafr7/PFvM2+LXeWcv1ac8ROqlq556AZfs40tNqSDJ4vezAM2yHifPo4S1iOHPhmC7S0HxDojGKUiInQIeAj2ueydeBXzSo+0NR0Cmha0mtxyOjOrmncZ x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:0; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0102MB3225.eurprd01.prod.exchangelabs.com; PTR:; CAT:NONE; SFTY:; SFS:; DIR:OUT; SFP:1901; x-ms-exchange-antispam-messagedata: +4gs817nHpWU97OD1h+2CWQIr686nfBqOIkWQihcx5LvZyxsjPCYiZimeq1XpX24vXOtXYd39Mv1p+T3dp06bCVwm2amHMtN+XUr3w+SqPWGc0EPsBuLAGEQXPj+Jhm2NE3HencKwvk3yf1EpP9rGA== x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: c7fc7c2a-682f-4c61-3b00-08d8021547ec X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 May 2020 08:09:29.5988 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR04HT141 X-Headers-End: 1jdr85-008vAv-3x Subject: Re: BatchProcessing Files on Windows 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="===============0983761492855698916==" Errors-To: sox-users-bounces@lists.sourceforge.net --===============0983761492855698916== Content-Language: aa Content-Type: multipart/alternative; boundary="_000_HE1PR0102MB32250804F59B9F62ED745959AAB10HE1PR0102MB3225_" --_000_HE1PR0102MB32250804F59B9F62ED745959AAB10HE1PR0102MB3225_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Thanks for the reply. I am using windows 10 command prompt. Maybe not optim= al but It=92s kind of hard to know which one to use if your not an experienced programmer. I have Git Bash, is= this is what you mean? But I don=92t use it because I can=92t get the set audiodriver to work as I could in the command= prompt. In cmd.exe this is the first thing I do set audiodriver=3Dwaveaudio and I am ready to go. I guess there is a simple= way to set up this from bash but I havn=92t found any answer. The amount of questions quickly escalates When I ran your first script inside bash it didn=92t work Just to make things clear: I ran this inside of Git Bash from a chosen folder set as my cd I also have to create a new folder within in this cd with mkdir? Then I=92ll use for F in *.wav ; do sox $F -b 8 nameoffolder/$F done But It doesn=92t work But It would be nice to run it inside Command Prompt in windows 10. I have been using sox in with cmd.exe because it worked for but most inform= ation I find using sox is on Linux So maybe I should switch.. Sent from Mail for Window= s 10 From: Jeff Learman Sent: Wednesday, 27 May 2020 02:23 To: sox-users@lists.sourceforge.net Subject: Re: [SoX-users] BatchProcessing Files on Windows For the first question, I'll let the devs answer, but apparently sox doesn'= t batch. For the second question, that's not a sox issue; it's a scripting question.= What shell are you using? For bash: for F in *.wav ; do sox $F -b 8 mydir/$F done I'm guessing you use Windows CLI? For that I'd use this: https://ss64.com/= nt/for2.html -- so it looks like you just need %% instead of %, and a backs= lash between the dir name and the wave file name. Jeff On Tue, 26 May 2020 at 18:31, Nils Wallgren > wrote: I have some problems getting these things to work: 1 I want the duration of a couple of soundfiles in a directory sox --i -D kick_*.wav the name of the sound files are kick_1.wav, kick_2.wav, kick_3.wav etc but it doesn=92t work with the wildcard. 2 If I want to batch process a couple of files in a directory and process/c= onvert them to something else And put the processed files in a new folder, how do I do that? for %i in *.wav do sox "%i" -b 8 "n_%i" .flac (also not sure of the conversion of the files when batching) Best, Sent from Mail for Window= s 10 _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users --_000_HE1PR0102MB32250804F59B9F62ED745959AAB10HE1PR0102MB3225_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

Thanks for the reply. I am usin= g windows 10 command prompt. Maybe not optimal but It=92s kind of hard to k= now

which one to use if your not an= experienced programmer. I have Git Bash, is this is what you mean? But I d= on=92t use it

because I can=92t get the set a= udiodriver to work as I could in the command prompt. In cmd.exe this is the= first thing I do

set audiodriver=3Dwaveaudio and= I am ready to go. I guess there is a simple way to set up this from bash b= ut

I havn=92t found any answer. Th= e amount of questions quickly escalates

 

When I ran your first script in= side bash it didn=92t work

Just to make things clear:

I ran this inside of Git Bash from a chosen folder s= et as my cd

I also have to create a new folder within in this cd= with mkdir?

 

Then I=92ll use for F in *.wav ; do

    sox $F -b 8 nameoffolder/$F

done

 

But It doesn=92t work

 

But It would be nice to run it inside Command Prompt= in windows 10. 

I have been using sox in with cmd.exe because it wor= ked for but most information I find using sox is on Linux

So maybe I should switch..

 

 

Sent from Mail for Windows 10

 

From: Jeff Learman
Sent: Wednesday, 27 May 2020 02:23
To: sox-users@lis= ts.sourceforge.net
Subject: Re: [SoX-users] BatchProcessing Files on Windows

 

For the first question, I'll let the devs answer, bu= t apparently sox doesn't batch.

 

For the second question, that's not a sox issue; it'= s a scripting question.  What shell are you using?  For bash:

 

for F in *.wav ; do

    sox $F -b 8 mydir/$F

done

 

I'm guessing you use Windows CLI?  For that I'd= use this: https://ss64.com/nt/for2.html -- so it looks like you just need %% inst= ead of %, and a backslash between the dir name and the wave file name.=

 

Jeff

 

 

 

 

On Tue, 26 May 2020 at 18:31, Nils Wallgren <affarer@hotmail.com> wrote:<= /o:p>

I have some problems getting these things to = work:

 =

1 I want the duration of a couple of soundfil= es in a directory

 =

sox --i -D kick_*.wav

 =

the name of the sound files are kick_1.wav, k= ick_2.wav, kick_3.wav etc

but it doesn=92t work with the wildcard.

 =

2 If I want to batch process a couple of file= s in a directory and process/convert them to something else

And put the processed files in a new folder, = how do I do that?

 =

for %i in *.wav do sox "%i" -b 8 &n= bsp;"n_%i" .flac

 =

(also not sure of the conversion of the files= when batching)

 

Best,

 

Sent from Mail for Windows 10

 

________________________= _______________________
Sox-users mailing list
Sox-us= ers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users=

 

--_000_HE1PR0102MB32250804F59B9F62ED745959AAB10HE1PR0102MB3225_-- --===============0983761492855698916== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============0983761492855698916== 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 --===============0983761492855698916==--