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_ADSP_CUSTOM_MED,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 C7DAF1F55B for ; Wed, 27 May 2020 12:51:09 +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 1jdvWS-0001ft-0K; Wed, 27 May 2020 12:51:04 +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 1jdvWR-0001fn-Bo for sox-users@lists.sourceforge.net; Wed, 27 May 2020 12:51:03 +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: In-Reply-To:References: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=NNPDH8Ar98YwOvKGJKhGij1eQ3tEFA7j7YGtI2FxZAQ=; b=QO478prnuSm/pGOJ2KGH43924 /L24uPDZ41VECIuIM7Mr746B2rDcDfQvS2+c/HnKuiZUbN4TNtWPi1GGbt9LytnPNVJtcCnSxcoE+ 9kzZxkPscKBLrt9Duw3RwsX4TTX9PkkUEiEDOtMN3HXRqfuLoV3Znni5341xtXjJK6iew=; 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:In-Reply-To:References: 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=NNPDH8Ar98YwOvKGJKhGij1eQ3tEFA7j7YGtI2FxZAQ=; b=SRYVgf1eGsKdDC9q5q7nORoFyZ pw72rFQHV5OeiKzoypU+nEcqh+xVoyL2wut3ubf0zM+cIxN1NLX0z+PET+LOOXgecMIy0+o3Jl0Rx /tNbwQTSHR1EVwicDC36fdZdYUhxvxTmAMhmMH+KuMzWvcdicxaqkY1mv9HBzoOt9MfU=; Received: from mail-wr1-f47.google.com ([209.85.221.47]) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.2) id 1jdvWP-00EojU-N2 for sox-users@lists.sourceforge.net; Wed, 27 May 2020 12:51:03 +0000 Received: by mail-wr1-f47.google.com with SMTP id r7so7196100wro.1 for ; Wed, 27 May 2020 05:51:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=NNPDH8Ar98YwOvKGJKhGij1eQ3tEFA7j7YGtI2FxZAQ=; b=DS9mKovkYuLwptcH2jTWy/oYAOwA+l2br+Bu6bAGIoFfXWI5V5SZLuQHVc4qH0UY0z rEiqeRucK9fXYvCRxu3bMUf0namcTdMnSr5hBHRJJ3+5Yg6G/C8GNBYPATDoQq394w7n pUiLLMmwnwJel1Ym7UROLtuhhgLf8hhlzYXec/wyvB4Xd9ot95HYyOmO1NatGWFjb5UJ rmni9FwPZDYFmUHSGtei3o8MvpdAyuSy70OtQdXUkQu3q7hhqQv1bpE9SF85Zr3aw1Ag DxFJQv1IBRJmDRMGajUsfETCP6KmddRRRegN+1ZCoCWHvExgyOuJOplDfCUtUU6JbeyU RQqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=NNPDH8Ar98YwOvKGJKhGij1eQ3tEFA7j7YGtI2FxZAQ=; b=Sxl9niPr6y1Fr0z04AbLGaY8Ckuu1rXekehw7t7/kLh/sZOOfYhPZjoNIlBsWfgcrs U7kUd8srVWURZcGSc9LLbDp88p4KSMm3qroKUymGRTka5F8BmmGQSiauf15+BFvQTRID in/d5IQZLD7/AUNVUbLEDk+aIqH0/fqVdEcBEvuPALIaA3heI738geGjIGHMZ+y6PKnU mTgdSEVd8HFvSs1sdgON+enhJQSbVSWV28QBAfC3eDt4rXG2Dngl48t6AG1gh3scBsyB sFXLYSeNjPTisgfGLVgSwf5LeArc3mZ9D9zYZshOz0YywOSaH720AF+lHgpjsryWcAav qRAw== X-Gm-Message-State: AOAM532XEtJrkTIsKh0eknSOOgaEnjcPRw7004pc76AeSD9tnh5II3kT Yx6dIbw0AfH9T86qnPJY3a7hJ1OpJsfOhnsIuvz5 X-Google-Smtp-Source: ABdhPJxMoXvhAF65a8oo4nc1l3bQRe8XXFr9FmmxwMfHi4TGMZaNOKD2SA/mjqfZK+GqM/tcipidGGEsUzunhd/uECk= X-Received: by 2002:adf:f84d:: with SMTP id d13mr17694473wrq.99.1590583855100; Wed, 27 May 2020 05:50:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jeff Learman Date: Wed, 27 May 2020 08:50:44 -0400 Message-ID: To: sox-users@lists.sourceforge.net X-Headers-End: 1jdvWP-00EojU-N2 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="===============2944088765569731718==" Errors-To: sox-users-bounces@lists.sourceforge.net --===============2944088765569731718== Content-Type: multipart/alternative; boundary="000000000000ab351205a6a0a9db" --000000000000ab351205a6a0a9db Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable "It doesn't work" is not helpful. Is there an error message? What DOES happen? Forget that for now, though. Let's stick with Windows CLI. Evidently the link I sent wasn't a good one. Try this mkdir foo for %i in (*.wav) do sox %i -b 8 foo\%i You can use "help for" in Windows cmd window for more info on how to use "for". On Wed, 27 May 2020 at 04:10, Nils Wallgren wrote: > Thanks for the reply. I am using windows 10 command prompt. Maybe not > optimal but It=E2=80=99s 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=E2=80=99t use it > > because I can=E2=80=99t 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 simp= le > way to set up this from bash but > > I havn=E2=80=99t found any answer. The amount of questions quickly escala= tes > > > > When I ran your first script inside bash it didn=E2=80=99t 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=E2=80=99ll use for F in *.wav ; do > > sox $F -b 8 nameoffolder/$F > > done > > > > But It doesn=E2=80=99t 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 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=E2=80=99t 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 > > > _______________________________________________ > Sox-users mailing list > Sox-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/sox-users > --000000000000ab351205a6a0a9db Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
"It doesn't work" is not helpful.=C2=A0= Is there an error message?=C2=A0 What DOES happen?

Forget that for now, though.=C2=A0 Let's stick with Windows CLI.= =C2=A0 Evidently the link I sent wasn't a good one.=C2=A0 Try this

mkdir foo
for %i in (*.wav) do sox %i -b 8 f= oo\%i

You can use "help for" in Windows = cmd window for more info on how to use "for".

=
On Wed, 27= May 2020 at 04:10, Nils Wallgren <affarer@hotmail.com> wrote:

Thanks for the reply. I am usin= g windows 10 command prompt. Maybe not optimal but It=E2=80=99s kind of har= d to know

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

because I can=E2=80=99t 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 b= ut

I havn=E2=80=99t found any answ= er. The amount of questions quickly escalates

=C2=A0

When I ran your first script in= side bash it didn=E2=80=99t 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?

=C2=A0

Then I=E2=80=99ll use for F in *.wav ; do<= /u>

=C2=A0=C2=A0=C2=A0 sox $F -b 8 nameoffolder/$F

done

=C2=A0

But It doesn=E2=80=99t work

=C2=A0

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

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..

=C2=A0

=C2=A0

Sent from Mail for Windows 10

=C2=A0

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

=C2=A0

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

=C2=A0

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

=C2=A0

for F in *.wav ; do

=C2=A0=C2=A0=C2=A0 sox $F -b 8 mydir/$F

done

=C2=A0

I'm guessing you use Windows CLI?=C2=A0 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.

=C2=A0

Jeff

=C2=A0

=C2=A0

=C2=A0

=C2=A0

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

=C2=A0

_______________________________________________
Sox-users mailing list
Sox-us= ers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/s= ox-users
--000000000000ab351205a6a0a9db-- --===============2944088765569731718== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============2944088765569731718== 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 --===============2944088765569731718==--