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=-3.9 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, MIME_HTML_MOSTLY,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 1F87F1F55B for ; Wed, 27 May 2020 09:49:33 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1jdsgf-0000EE-CV; Wed, 27 May 2020 09:49:25 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdsgZ-0000DX-L4 for sox-users@lists.sourceforge.net; Wed, 27 May 2020 09:49:21 +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=LDpJe952ygqNWKGQBQPcKGGmnx8VmLXGZmED+F5gTzs=; b=M+Ol8t/Y4DTOiAqF8kZYsliCOc dGxV8hJBm8qx+EIqKx+YzjrZm1qHNghGsqjSnk7LF5YYSoEvv8crerOcjA3iZPsaemlRyFP2i8e3t qlLSRVwNNCI+yCuDMrCvIYFTZitWXuklYZC8P7Ighxn+YXh0brRwaNsaRi6IgdwHwwFk=; 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=LDpJe952ygqNWKGQBQPcKGGmnx8VmLXGZmED+F5gTzs=; b=iOKKdGSQbtacmgvhdpIbgoAHV8 7D+566eKD+CGlHQeHf5AvL6u3/Bg6ovk+YsSqFSPSzE63WnfS9HwfrhRc1W0CTa3w1+5Of8m4LvbF ppgvg9/i5pZ2FIIkePWSXxU6hn1UpoQm+vGIOykue9E327aBAC6ly1NBLNVcUc9nJK0I=; Received: from mail-am6eur05olkn2078.outbound.protection.outlook.com ([40.92.91.78] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1jdsgV-00EeGj-68 for sox-users@lists.sourceforge.net; Wed, 27 May 2020 09:49:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZFjLUvwrf1ZOz08SrNib8fUawVvH8Tt2A7U2MA7/qFrLd9T4cByIHvdRdbKam/72TSN/CqSkLrWesE3ONzXgX1e5bcI2Swm5rmiqu30EMopZpO3/p2alFoAYbpv5HVYcc43v/xeTIj/zlLzSZ+AAFgDn/ScOAGHOL5w/4txvOjDVCe62VwqEwLaTBL069Pt7DODQm/MKr3sNGLuiBzyHqZZgkJVo47nWCBZ//ivh26hGl8MSC9Z7zs3gVdbaBVFUDPac2BK5im1Ts2rQVdjQxeUFuklcWmifjKJ3TKYejJQrMs8bMiIXqVsBXPTVCNjccm14EqnX/GLXh3vTfrWsdQ== 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=LDpJe952ygqNWKGQBQPcKGGmnx8VmLXGZmED+F5gTzs=; b=CqRYwIi5t09H3r5qxM2y3Ej2s5MhhDjoYJNY3ctsS//v1d97l/4DtVRCxGBDrJyP2StsnqvXAZT47grxIaWLWDObaQkYA7RpCVeisZIV0UypQPLYgVBfT8hUb4UjQkGuY+HcgDpA8UkSYuFoGw64BPzi5Rswqp1dqeGSYiJBYV3hyNVz6ewnkXjtH1o2bbzJFwiRQZ57v0QeolufV7rITWNaSECvYO6Y4SIEnugEZvcOyWOrW1+k4MYCZDpaFwD57YdD1P3yMjsWLFvmdRH+DWbuGUVQ9ae49gDYtHwBwR0bykKQvl9oJZRqKdsVTNRbVCdhbfcYSVRNqgMATIu9AA== 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=LDpJe952ygqNWKGQBQPcKGGmnx8VmLXGZmED+F5gTzs=; b=dS8DGanmI+5wDg/JBvW0KMetkEin4gBeJO0RkWwrxfQZU9h23kYaomjUh0oz8ghXYg1T7A0CIDJ+EsDqU4Wc9NSbvRofFy8B2yD2K9e7crU5dbq8TKP/uwOTj1Zm9Kd9Qg6e5iJ0CB+UOQ84bh/s5UtfUx3+2BwK68H2h0eleOxxgx8eQWC0oRBQIkBI48So1WLeMZM0glGONeeUtHVeYI5+iHDxeZ/KXhflu29z+acZa/cS2jdSwXpZNquMObpOVcr6P676FRpMRn0FSwKK258DjhQ/+SSM3wTbfPCiP9JF9dc2tk0N7ED4RiSnGoYtjgfwr/mbEIpCBVF54lFC1g== Received: from AM6EUR05FT031.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc11::46) by AM6EUR05HT241.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc11::105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3045.17; Wed, 27 May 2020 09:48:56 +0000 Received: from HE1PR0102MB3225.eurprd01.prod.exchangelabs.com (2a01:111:e400:fc11::4e) by AM6EUR05FT031.mail.protection.outlook.com (2a01:111:e400:fc11::151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23 via Frontend Transport; Wed, 27 May 2020 09:48:56 +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 09:48:55 +0000 From: Nils Wallgren To: "sox-users@lists.sourceforge.net" Thread-Topic: [SoX-users] BatchProcessing Files on Windows Thread-Index: AQHWM6uwj7/NdXt6EUCSeQ3IbMcrTai7EkAAgABt9zKAABwrM4AAAghP Date: Wed, 27 May 2020 09:48:55 +0000 Message-ID: References: <173dc6c3-ff96-e8b7-a072-3d3f84220e5d@bayern-mail.de>, In-Reply-To: Accept-Language: sv-SE, en-US Content-Language: aa X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:D64B0AD6E146F9ABF8E4348B1B5168D71437B46C9BFF289C5DFA513AE2B09843; UpperCasedChecksum:071502ED41161B0287F79ADE99CCD3A4E6E1FC9581D4ECF8E569540B54DE2C22; SizeAsReceived:7117; Count:44 x-tmn: [nDtWDwF2RU7BU38xGpIqy3cWrc/bmD/n] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 016f298f-b461-4838-b82f-08d802232bf5 x-ms-traffictypediagnostic: AM6EUR05HT241: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: vWSs/DOVZBS8bj+I+60bgHux/sjLmebq5hvgOS7FfOonmNWPo6W772V9vIOoT2l4qA9R30idYhyS3BcM/QIqMx60QFeVmiEh5aW1I6ax4oVv29EC7X3dBu8BAnPKqTBrp7qDdtWppt4HXRY8/hS5IWb/wSgi2jfl60wpr11ANqEQ2G3ng4xPaBagRbpshst4x1EcyW8otiSXMN/YMG5fiLLKcjmdJy1H04yA2cd2+QAWdk2Ag/eg9gD9FaQz7QJU 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: 3XuAFSlp7PSUv4AzxD595ZplEvpHff+MvL0WGPTrWTf4O5bEPYaMJduPk3wWVYOfUaBjJ7Nb2KX1uzdDG+vFJFwUeGkkVjFDGP9GxlSMzkjrUa6ftyB7p48GyDYdP9xQBBFvvfoxHyip/aRN/vqe1Q== 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: 016f298f-b461-4838-b82f-08d802232bf5 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 May 2020 09:48:55.7130 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6EUR05HT241 X-Headers-End: 1jdsgV-00EeGj-68 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="===============3872038805101883377==" Errors-To: sox-users-bounces@lists.sourceforge.net --===============3872038805101883377== Content-Language: aa Content-Type: multipart/alternative; boundary="_000_HE1PR0102MB32257C52924D2AECDB5A45A9AAB10HE1PR0102MB3225_" --_000_HE1PR0102MB32257C52924D2AECDB5A45A9AAB10HE1PR0102MB3225_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable I don=92t think the .cmd lets me use %%: =93%%a was unexpected at this time=94 Also: =93C:\sox.exe"' is not recognized as an internal or external command=94 What I want to do is convert files within a cd using wildcards *.wav conver= ting these to another fileformat i.e flac while also giving it its name and= create the processed In a new folder within the cd. This is the closest I get but the naming is kind of strange Mkdir converted For %i in (*.wav) do sox "%i" -b 8 "converted/name_%i.flac babar.wav (original fil) n_babar.wav.flac (new file) would be nice to just have the n_babar.flac Sent from Mail for Window= s 10 From: tsepp2000@web.de Sent: Wednesday, 27 May 2020 10:36 To: sox-users@lists.sourceforge.net Subject: Re: [SoX-users] BatchProcessing Files on Windows Hi, I don't understand exactly, what you want to do. And it's not very differen= t using sox with linux. May be this could help? This could be a *.cmd: for %%a in (*.wav) do "C:\sox.exe" [...] "%%a" pause After sox you could give in your [paramters]. Regards Thomas -------- Weitergeleitete Nachricht -------- Betreff: Re: [SoX-users] BatchProcessing Files on Windows Datum: Wed, 27 May 2020 08:09:29 +0000 Von: Nils Wallgren Antwort an: sox-users@lists.sourceforge.net An: sox-users@lists.sourceforge.net 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_HE1PR0102MB32257C52924D2AECDB5A45A9AAB10HE1PR0102MB3225_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

I don=92t think the .cmd lets m= e use %%:

=93%%a was unexpected at this t= ime=94

Also:

=93C:\sox.exe"' is not rec= ognized as an internal or external command=94

 

What I want to do is convert fi= les within a cd using wildcards *.wav converting these to another fileforma= t i.e flac while also giving it its name and create the processed

In a new folder within the cd.<= o:p>

 

This is the closest I get but t= he naming is kind of strange

Mkdir converted

For %i in (*.wav) do sox "= %i" -b 8  "converted/name_%i.flac

 

babar.wav  (original fil)<= o:p>

 

n_babar.wav.flac (new file)

would be nice to just have the = n_babar.flac

 

 

 

 

 

 

Sent from Mail for Windows 10

 

From: tsepp2000@web.de
Sent: Wednesday, 27 May 2020 10:36
To: sox-users@lis= ts.sourceforge.net
Subject: Re: [SoX-users] BatchProcessing Files on Windows

 

Hi,

 

I don't understand exactly, what you want to do. And= it's not very different using sox with linux. May be this could help? This= could be a *.cmd:

 

for %%a in (*.wav) do "C:\sox.exe" [...] &= quot;%%a"
pause

 

After sox you could give in your [paramters].

 

Regards

Thomas

 

 

 =

 



-------- Weitergeleitete Nachricht --------

Betref= f:

Re: [SoX-users] BatchProcessing Files on Windows

Datum:=

Wed, 27 May 2020 08:09:29 +0000

Von:

Nils Wallgren <affarer@hotmail.com>

Antwor= t an:

sox-users@lists.sourceforge.net

An:

sox-users@lists.sourceforge.net <so= x-users@lists.sourceforge.net>

=  

Thanks for the reply. I = am using windows 10 command prompt. Maybe not optimal but It=92s kind of ha= rd 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 th= e set audiodriver to work as I could in the command prompt. In cmd.exe this= is the first thing I do

set audiodriver=3Dwaveau= dio 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 ans= wer. The amount of questions quickly escalates

 

When I ran your first sc= ript inside bash it didn=92t work

Just to make things clea= r:

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 information I find using sox i= s 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@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 yo= u using?  For bash:

 

for F in *.wav ; do=

    sox $= F -b 8 mydir/$F

done

 

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

 

Jeff

 

 

 

 

On Tue, 26 May 2020 at 1= 8:31, Nils Wallgren <affarer@hotmail.com> wrote:

I have some problems ge= tting these things to work:

 

1 I want the duration o= f a couple of soundfiles in a directory

 

sox --i -D kick_*.wav

 

the name of the sound f= iles are kick_1.wav, kick_2.wav, kick_3.wav etc

but it doesn=92t work w= ith the wildcard.

 

2 If I want to batch pr= ocess a couple of files in a directory and process/convert them to somethin= g else

And put the processed f= iles 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 c= onversion 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_HE1PR0102MB32257C52924D2AECDB5A45A9AAB10HE1PR0102MB3225_-- --===============3872038805101883377== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============3872038805101883377== 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 --===============3872038805101883377==--