everything related to duct tape audio suite (dtas)
 help / color / mirror / code / Atom feed
From: Eric Wong <e@80x24.org>
To: Rene Maurer <rmnet@mailc.net>
Cc: dtas-all@nongnu.org
Subject: Re: SOX_OPTS gone?
Date: Fri, 1 Nov 2019 22:10:48 +0000	[thread overview]
Message-ID: <20191101221048.GA25285@dcvr> (raw)
In-Reply-To: <87tv7nwufw.fsf@alperose.cumparsita.ch>

Rene Maurer <rmnet@mailc.net> wrote:
> Hello
> I have used SOX_OPTS for a long time in the source to add some
> effects. For example: dtas-ctl source ed sox env.SOX_OPTS="sinc -850".
> I can see this with dtas-sourceedit sox:
> ,----
> | ---
> | command: exec sox "$INFILE" $SOXFMT - $TRIMFX $RGFX
> | env:
> |   SOX_OPTS: sinc -850
> | tryorder: 0
> `----
> As $SOX_OPTS is (no longer?) in <command:> the sinc effect in the given
> example is not applied. An a old installation dtas-sourceedit sox gives
> me:
> ,----
> | ---
> | command: exec sox "$INFILE" $SOXFMT - $TRIMFX $RGFX $SOX_OPTS
> | env: !!omap
> | -  SOX_OPTS: sinc -850
> | tryorder: 0
> `----
> When I add $SOX_OPTS to <command:> the effect works as expected.

SOX_OPTS is implemented by sox(1) itself, not dtas.

Furthermore, SOX_OPTS is intended for "--" options (e.g.
"--no-clobber"), not effects chains such as "sinc".

I think you added $SOX_OPTS to "command:" yourself, since I
can't find evidence in dtas.git history that ever put $SOX_OPTS
in the command-line.

> What is the (new) recommended way to add an effect to the
> source. dtas-sourceedit isn't an option for me as normally I only use
> <dtas-ctl source ed>.

You can put arbitrary variables there, such as MYFX, of course:

command: exec sox "$INFILE" $SOXFMT - $TRIMFX $RGFX $MYFX
env: !!omap
- MYFX: sinc -850

Btw, I started looking into your auto-pause thing the other day
but got sidetracked by Ruby 2.7.0dev problems :<  I wish I had
written this in Perl5 or even C99...

  reply	other threads:[~2019-11-01 22:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-01 14:19 SOX_OPTS gone? Rene Maurer
2019-11-01 22:10 ` Eric Wong [this message]
     [not found]   ` <87a79eu0jo.fsf@alperose.cumparsita.ch>
2019-11-02 21:16     ` Eric Wong
2019-11-04  6:21       ` Rene Maurer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://80x24.org/dtas/README

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191101221048.GA25285@dcvr \
    --to=e@80x24.org \
    --cc=dtas-all@nongnu.org \
    --cc=rmnet@mailc.net \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).