[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SOX_OPTS gone?
From: |
Eric Wong |
Subject: |
Re: SOX_OPTS gone? |
Date: |
Fri, 1 Nov 2019 22:10:48 +0000 |
Rene Maurer <address@hidden> 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...
- SOX_OPTS gone?, Rene Maurer, 2019/11/01
- Re: SOX_OPTS gone?,
Eric Wong <=