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_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 7660D1F55B for ; Wed, 27 May 2020 00:22:07 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1jdjpa-0002G8-Cb; Wed, 27 May 2020 00:22:02 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdjpZ-0002FQ-7C for sox-users@lists.sourceforge.net; Wed, 27 May 2020 00:22:01 +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=wCDaNqrj+DGFjjlEYm7Bs9zFY079loPTQV470q9aKss=; b=Bg5rTp+wXwkNGjbQOK5GJnHXW SX0b8JbbQ3zgYKCRLbesonL+k/8bxWua0OjtQEgjOr5xMeocXAjwcWVt0/dZZ7hP1SqBTye2VIGQe D6ywn6QLd+N3pDYgoIt89LvUtSOBVSn3/ptAqunO/0PRgFvEoc1cLtfANiDPRoF/aAcxM=; 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=wCDaNqrj+DGFjjlEYm7Bs9zFY079loPTQV470q9aKss=; b=EckBUJSer+X0Gzyf6glnn3yLh6 VoXLdsp3MOqr/Qa0kkV4zXSry8cmf5FYYA1Jl5HekIh569UIH4ytTKik8N8ybE0A2xex54EweOtBz 2cEIt1Ey6n9/6+RuBtFP2NJvUOVWtlSitPVCjqpebvRDbWCekj+11x5SXRG4taMOFsS0=; Received: from mail-wr1-f46.google.com ([209.85.221.46]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.2) id 1jdjpX-008Sl1-Or for sox-users@lists.sourceforge.net; Wed, 27 May 2020 00:22:01 +0000 Received: by mail-wr1-f46.google.com with SMTP id x13so7617944wrv.4 for ; Tue, 26 May 2020 17:21:59 -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=wCDaNqrj+DGFjjlEYm7Bs9zFY079loPTQV470q9aKss=; b=J8luvPmYdG62TTiDO05HggaZnZrb9mRqxhvoli6iuN7UvNPydm37mI10gco8x1Ptut zovmUQ/gYeRNdcvlKaC5c3axIWQR/fgyWaHqg3TSKOVU73q7O7RpQJg9y6zVpcrc2GsY n5yLtbkJbbGoAtNssk4kbvEi4/rJbcUla6ToHfUmyh7EdM0dvjj0Ku5O3rthPmTHdkS9 EeitezpcOnLgVICtjOh9VjgN4kBpzVo+5kb0ZCZE8vrIlbVH78RpjQS1e/dH/Js5Zcia xJYKnvSSKTDbiSKzCaMRfWhJKe5heQWN/VzP5YhoI3JAUJEC1LDa4m7ewRC/XmxB5cPl fvYg== 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=wCDaNqrj+DGFjjlEYm7Bs9zFY079loPTQV470q9aKss=; b=aALscsIGChHoZMre4EYXiWslH5C/WIjo1HZcaKBP4jbH5FEukvCSmpo9k/Q1ziDYUN ccgWE+czLqQFLEZjc15GYL79IaVTqwvRrJazftQvIBQxNJ4efoN1V4wTQtRrcWsLRmYQ OLXOMg8VvsL394oJVGnrlxG4dQKjZ5mZZDyWMLTH4k2DGJKFNmvVkeYHHkIv8ibebCre xOeFCFcU5HNTmCMz40y3t9lnItCzsNbKLs0a0DbRG5SGphi1uGNtMLWhBH+bO03b9jMq YuhSflCsu0zOpf5Z++AEAV1RMKbbGGAapuBU+0KOFBg2DHW6L8/9kScQd/XUiOcRigzV KqWA== X-Gm-Message-State: AOAM533Gqd7CG7PsvT2xrbvXJM/zUXkI1Ks2w4AZhFxEcf3cw80HG4WR Vr3gsxmbD0mCqg6/F9jdXyzSHJQQN5TMPGc2XmuDeI4= X-Google-Smtp-Source: ABdhPJyYz7A+SgQQSdb9py6rpKGLIDDMVbiqQUEdsS4RyC5CrGEPaZgv6CxR+RpEo0P+5JILdGkM7aLGv/NwCqWr0yw= X-Received: by 2002:a5d:6550:: with SMTP id z16mr22558282wrv.392.1590538913134; Tue, 26 May 2020 17:21:53 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jeff Learman Date: Tue, 26 May 2020 20:21:42 -0400 Message-ID: To: sox-users@lists.sourceforge.net X-Headers-End: 1jdjpX-008Sl1-Or 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="===============0566516048619412497==" Errors-To: sox-users-bounces@lists.sourceforge.net --===============0566516048619412497== Content-Type: multipart/alternative; boundary="000000000000eb3a9105a6963259" --000000000000eb3a9105a6963259 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 > --000000000000eb3a9105a6963259 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
For the first question, I'll let the devs answer,= but apparently sox doesn't batch.

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

for = F in *.wav ; do
=C2=A0=C2=A0=C2=A0 sox $F -b 8 mydir/$F
done

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 %% instead of= %, and a backslash between the dir name and the wave file name.
<= div>
Jeff



<= /div>
O= n Tue, 26 May 2020 at 18:31, Nils Wallgren <affarer@hotmail.com> wrote:

I have some problems getting th= ese things to work:

=C2=A0

1 I want the duration of a coup= le of soundfiles in a directory

=C2=A0

sox --i -D kick_*.wav=

=C2=A0

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

but it doesn=E2=80=99t work wit= h the wildcard.

=C2=A0

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?

=C2=A0

for %i in *.wav do sox "%i= " -b 8 =C2=A0"n_%i" .flac

=C2=A0

(also not sure of the conversio= n of the files when batching)

=C2=A0

Best,

=C2=A0

Sent from Mail for Windows 10

=C2=A0

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