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,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,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 0645C1F66F for ; Tue, 17 Nov 2020 03:07:39 +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 1kerL7-0006BX-8V; Tue, 17 Nov 2020 03:07:29 +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 1kerL4-0006BC-UQ for sox-users@lists.sourceforge.net; Tue, 17 Nov 2020 03:07:26 +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: References:In-Reply-To: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=CJmb+YUwgL2xH5nBVxYLi8OH8yIzVi3/LYHrdcVNqa0=; b=SGIL813OxUWD9PP9sCL1MOK+7 LTHHAh5HGaRnWo8fDpfpVEGcAOPA7pBhHtvhEd7XYDAMThia3jTrDaOsBQ1jxgIAjJDpdFXfAN4yf zjiho82AbLhMj1hdoNikAHZgzy0gYq9E0nmVCnNKj60MGq5+m8i4Pe7yQuIJJZaHxys04=; 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:References:In-Reply-To: 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=CJmb+YUwgL2xH5nBVxYLi8OH8yIzVi3/LYHrdcVNqa0=; b=D8OZ1gDWYHfrkyNLzzkF5HLAO1 GieW0l5jrjUwSiuVebJMlBYyTj/BI/9Z6GIpjNcxfaHowMO4H0lgOgECWmjB6LZy8CN0MaV4zi9Fl EfShPJqhGkyoGM4UBfVgsGtUPdU7KyKpQmXTfi7sicDP2kzChFCLoDMjmVxaVyByKMBs=; Received: from mail-ej1-f51.google.com ([209.85.218.51]) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.2) id 1kerL0-00GbAp-O0 for sox-users@lists.sourceforge.net; Tue, 17 Nov 2020 03:07:26 +0000 Received: by mail-ej1-f51.google.com with SMTP id o21so27402141ejb.3 for ; Mon, 16 Nov 2020 19:07:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=CJmb+YUwgL2xH5nBVxYLi8OH8yIzVi3/LYHrdcVNqa0=; b=KeInPkMKbL2mhyKbU4W7GD6D2n044hvBhY/Ynx3qtat//G0Jf660qBqHzHIYSdPO04 SInyf/9FxD6qGUBlseKh1nZoNp1p2cQPvWyZEMLyX0NFwBmqn1Z8YfiY/6JMCBeTFlX0 ssMcwKUMkB+B4Exut61hIOAkfvQPyVjIb281WewHDapPceRkgsf09fGAnrDUX6hQ3gTR zNxZXRGfkF78TZnk1PxtAc0lWpBiixD1PcAiT5P+YLW1WMUfIs3rhlqgmEXIvVqZ1DJv Z72/ORfXwar0YDKDysDqL75WLOGBnMFlfJd7QDrl1iWghmleUbQdaYHAdsU0SVccVNP+ hHRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=CJmb+YUwgL2xH5nBVxYLi8OH8yIzVi3/LYHrdcVNqa0=; b=CcqeQNpbFRWqm07BsgHG3xK2NVlUaQIrHy0x2xj+DC2oyPbjqwQVdmxxW1MBHm3Hb4 CpK89/17B1+QHikSBK46xJp/zFDSfDo4h0ONx0yju6r6/fXO75OpijSpSkedVV/yOLp/ FemenCk6CU+KjDP/ppsbSe6GS55BVYCn1eg/V3Wf2vH2oNG3zh5AMtZdhT+kwUxNzN8A 08K7SoDUdEd4cHkaJ7t4RvH4E7JiGKETZb36u/Ys346aZIDdaCI3wkMegq8wEMfC0CTj snv9djSKPxsAxj+vC5IThoOMt/Iz1uPYBGOsA5Zj/HmlZQngZE6ZM7JmhmQROyLitK3g ZJxA== X-Gm-Message-State: AOAM53048h1hy4DSLHOXSF9XcKbQU98rH8wIoC5lxZYMFFx4+3kXsA8e Bimp1ZnCPQr2zaYh8Xcak3uwTQwMNkkCBFyXGOAbP5qE X-Google-Smtp-Source: ABdhPJxjoTOOK+ws9BImeiRC1KDYXzuKXTde1klg9SXqDKXlwsZnjK21guJ1Zxe9YgqAHOweaKSIIZaini2SNA21BWQ= X-Received: by 2002:a17:906:5a8f:: with SMTP id l15mr17328103ejq.419.1605582435964; Mon, 16 Nov 2020 19:07:15 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a50:6cc3:0:0:0:0:0 with HTTP; Mon, 16 Nov 2020 19:07:15 -0800 (PST) In-Reply-To: <1cd5c375f96efc01a563bd1cf93da940@wingsandbeaks.org.uk> References: <1cd5c375f96efc01a563bd1cf93da940@wingsandbeaks.org.uk> From: raymond grote Date: Mon, 16 Nov 2020 22:07:15 -0500 Message-ID: To: sox-users@lists.sourceforge.net X-Headers-End: 1kerL0-00GbAp-O0 Subject: Re: new user trying to set up a processing chain 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: sox-users-bounces@lists.sourceforge.net Hi Jeremy, You're correct, I didn't give enough information. I'm using Windows 10. I'm not at a very proficient level with scripting. I see the potential of it, but am not confident with a scripting language yet. I'm assuming batch script would be fine for my needs, but right now I'm just trying to learn some basics, so that I have a better idea of what I'll be scripting when I get there. I totally understand what you're saying about making sure the processing is easy to follow and adjust, rather than trying to make it run as efficiently as possible. I tend to agree with that mindset, but I feel like there's a line between an easy-to-follow way, and a way that's hacked together because you don't understand the basic tools which make certain things a hundred times easier. I sometimes feel like I'm on the wrong side of that, So I'm a bit paranoid that I'm doing things in a stupid way haha A simple example follows. Not sure if I'd actually use this, I was just trying to think of a situation which illustrates my uncertainties. Step 1. I have a file called test.wav and I want to pitch shift it. sox test.wav temp.wav pitch -500 Step 2. Then I should mix the pitch shift copy with the original, and apply reverb to the mix. sox -m test.wav temp.wav test_processed.wav reverb File/directory structure should be simple. Basically, the original file and the _processed version should be in the same folder, at least for now. Temp.wav is not needed. It would be useful to hear intermediate results, but assuming I don't need to check those, I really don't need it. So my question is twofold. Is it common practice to launch sox once for some processing and then again for other stuff? I know you can chain effects in one sox instance, but mixing is not an effect as I understand, which is why I came to the conclusion that you needed to use a separate instance for mixing. But for all I know, I'm missing something. Secondly, is it a good idea to use a temporary output file on the hard drive as I have done for intermediate processing steps? On 11/16/20, Jeremy Nicoll - ml sox users wrote: > On 2020-11-16 10:04, raymond grote wrote: > >> As someone who is generally good at putting pieces together, I can >> work out how to do this in a messy way. Basically I would manually >> mix/process each file. But I unfortunately struggle with efficiency >> sometimes, so it would be quite tedious to do this to multiple files. > >> So, I'm primarily trying to work out how much I can do with one >> instance of sox, and if multiple instances are required, where would >> they split? > > I think your question's a bit too vague to answer easily. > > What OS are you using, and what scripting language (or shell?) are you > comfortable with? > > Do you have an idea yet of what directories/folders you're planning to > keep files in? > > Do you know how you plan to name them? (Eg, are you going to have base > leafnames and add words to imply what changes you've made, so that eg > > mysong.wav > > might end up with modified versions named eg > > mysong (shifted 2khz).wav > > mysong (shifted 2khz) (reverb).wav > > or could it be ...mysong\file001.wav (the original) > and ...mysong\filennn.wav (the n'th variant)? > > > Do all the files you want to process have a similar naming style? > > > As far as sox goes, I am not personally in favour of trying to use > chains > of commands, because although efficiency may be a problem, stuff can run > while I look for food, have a shower, sleep etc... and simplicity in the > scripts wins over for me. (I'm a retired professional programmer, so my > "simple" might be more complex than yours. And my scripts are written in > ooREXX and run under Windows.) > > It's also (I think) a great deal easier (if you realise later on that a > sequence of effects didn't do quite what you wanted) that you can go > back > and redo (say) the third change taking the output from the second one. > You can't do that if you no longer have the intermediate files. > > Also at the start when you are experimenting, I think you'd want to test > each stage separately. > > > -- > Jeremy Nicoll - my opinions are my own > > > _______________________________________________ > 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