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=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 EBA791F55B for ; Wed, 27 May 2020 08:35:00 +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 1jdrWY-00055j-8o; Wed, 27 May 2020 08:34:54 +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 1jdrWV-00055V-Ge for sox-users@lists.sourceforge.net; Wed, 27 May 2020 08:34:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=References:In-Reply-To:Date:Content-Type:Subject:To :From:Message-ID:MIME-Version: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=JJU+7FgFkKWeQ8FR5icLq5oWfuQTYduYHkfbV7nEwPo=; b=h9QuLLuULGqXIZqAJLiP0KtmBF YhJwRbtAQU2oqwqkrEmv0NmBkh5XWjFEm73IAwuVqqh7pUbW1HmSboSavozeyxBpDM4SsyuBQw+my 4suovuECgxaal/behHElT7jZEDxpYaaW4gNLhmvC076RmVCJcR1t/mDfdfEkC3wyZK4s=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=References:In-Reply-To:Date:Content-Type:Subject:To:From:Message-ID: MIME-Version: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=JJU+7FgFkKWeQ8FR5icLq5oWfuQTYduYHkfbV7nEwPo=; b=m0LeuxoxxqPL23Xp3AIkMyY59Z aHfdk2ykmmCMY7Ro9oFCSQ6e9CtVpguuSLvvIqIdwdnwKDi96hyMrZzYMb+imAOojMSFk60vUXuV7 6XqNGt14MqP6xOVWCWBEcBuHckk964dJBm3YGTp/g/rLh1gQ28O7p+y1oU2fRzab7mZc=; Received: from mout.web.de ([217.72.192.78]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1jdrWS-008wrp-R7 for sox-users@lists.sourceforge.net; Wed, 27 May 2020 08:34:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1590568482; bh=k/Oa/MlkbwGLeXxlExRpQ+H75tsJyxYlI9wkrSbdJK4=; h=X-UI-Sender-Class:From:To:Subject:Date:In-Reply-To:References; b=kdcg93cw1rMHN2q0JJZbuGe2QaqLCKbepWXgN97UmthqNx899MDieRCKyhgzWmRRW Gn37653znib6bDgNRMkHZlbO9Wo1n6RwaL6rp4wHMHQwJ566V95B4c5IonOy08Wz9h nGuLDfFrY2XgVUb0M2xHENbgMk5xiBEmR3QzfilI= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [62.216.202.193] ([62.216.202.193]) by web-mail.web.de (3c-app-webde-bap28.server.lan [172.19.172.28]) (via HTTP); Wed, 27 May 2020 10:34:42 +0200 MIME-Version: 1.0 Message-ID: From: tsepp2000@web.de To: sox-users@lists.sourceforge.net Date: Wed, 27 May 2020 10:34:42 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <173dc6c3-ff96-e8b7-a072-3d3f84220e5d@bayern-mail.de> References: <173dc6c3-ff96-e8b7-a072-3d3f84220e5d@bayern-mail.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:CkTk8/mkWXKtJMGSQ+LK8d2BTBOACjbuiiP8FvFrshbV0mkDUYEztZmbbkd7Y0fhvQdw8 VD6HiHjsD54qJ8N8Ggz+ga75zCX83Szq0/YfBOr1GXirnpqwQmaZq9RCL0+l0Cwc8HRSG6Ij50Hk JWQ0Nm+U0nwkH5ZJS6CWtAA9Ip8bPG5xezAfruQxPs41fvC/XbTLQ3fOJXk7uPe1HpuE39/NuTzg 8OhzZIcMEVtHAQkpIChtuu3zgibLljg/8h2kkkj0SkghNZiln74mlEK4A4+TwS0A+5eJKWvb2uHI sc= X-UI-Out-Filterresults: notjunk:1;V03:K0:HOu2zuvlnJM=:RY0740r6AbgtKJdJbYjIrv Bbk20wxwoNga8xhaK//ZXvcVRRFjqVBFzUy/gqrHf2NOJ+dRD6gZokS/AINyrvBuTeEs+WbU1 pfSBCWyy+otB9fIzt9oCaqmn5/sF0dr/fwsyD9P1DUwKwRWToNqih9kg8keUgdg8bE/7pp3NR I3wTG6o2S4Bg47WEzvi8RwtoAljROjUJkJceZLsJE4yTimj5DYMwaW1DvQsEglBeJUvIRDCIW z5aXkkzjYp1oyS0W2Ue8iSkPdYM1EFLc0WVi0O1SaSI67byPA/mKGLMpCGPsNDWjFmw9TZCY0 j8ADLZdua0hipO90D1MFyFCAHr+nJBwsTa9IXH0S9ztY6iwuL5HEcrNquJ+GQlwEhzkWH8XIb SZIRB6U3v0V5dk/xywMDVRKQQwBJXLLJk/qHb9zV8YLAuaSiqa5moTP9akqcgx0x1f8gqRmvf fOui31xSJ7mYinSbwU2dzK9flcm0MY5d3TwdemAWgbcKNVwPw4RZ44XjyM3wKBL4ebY808qir AhSHaLQSHSDGnhHWMdC1ueLJs8Dzb110+OTZU7lOgFFUTbGOWPtETsNRlcrcr1gzSxYQkuXG8 HOcooK80izaN+uDfxTMSzaGjDCBZaqHRbKSvY8X/PSFI/SXZwzt7xLLf2CvwXevj/zDUZedcN LqAvOd1bAtc9ZedlDCwsGVFaH8fjUbSkLpcutX3M8GRjTkQFgEewCqG55oI1ndFFui1s= X-Headers-End: 1jdrWS-008wrp-R7 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="===============0700532892373786849==" Errors-To: sox-users-bounces@lists.sourceforge.net --===============0700532892373786849== Content-Type: text/html; charset=UTF-8
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" [...] "%%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 <affarer@hotmail.com>
Antwort an: sox-users@lists.sourceforge.net
An: sox-users@lists.sourceforge.net <sox-users@lists.sourceforge.net>


Thanks for the reply. I am using windows 10 command prompt. Maybe not optimal but It’s 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’t use it

because I can’t 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=waveaudio and I am ready to go. I guess there is a simple way to set up this from bash but

I havn’t found any answer. The amount of questions quickly escalates

 

When I ran your first script inside bash it didn’t 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’ll use for F in *.wav ; do

    sox $F -b 8 nameoffolder/$F

done

 

But It doesn’t 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 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@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 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:

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’t work with the wildcard.

 

2 If I want to batch process a couple of files 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_%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-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

 

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