everything related to duct tape audio suite (dtas)
 help / color / mirror / code / Atom feed
* SOX_OPTS gone?
@ 2019-11-01 14:19 Rene Maurer
  2019-11-01 22:10 ` Eric Wong
  0 siblings, 1 reply; 4+ messages in thread
From: Rene Maurer @ 2019-11-01 14:19 UTC (permalink / raw)
  To: dtas-all

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.

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

Regards, René


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: SOX_OPTS gone?
  2019-11-01 14:19 SOX_OPTS gone? Rene Maurer
@ 2019-11-01 22:10 ` Eric Wong
       [not found]   ` <87a79eu0jo.fsf@alperose.cumparsita.ch>
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Wong @ 2019-11-01 22:10 UTC (permalink / raw)
  To: Rene Maurer; +Cc: dtas-all

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: SOX_OPTS gone?
       [not found]   ` <87a79eu0jo.fsf@alperose.cumparsita.ch>
@ 2019-11-02 21:16     ` Eric Wong
  2019-11-04  6:21       ` Rene Maurer
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Wong @ 2019-11-02 21:16 UTC (permalink / raw)
  To: Rene Maurer; +Cc: dtas-all

Rene Maurer <rmnet@mailc.net> wrote:
> Eric Wong <e@80x24.org> wrote:
> 
> > 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.
> 
> I don't remember, but you could be right ;-)
> 
> > You can put arbitrary variables there, such as MYFX, of course:
> >
> > command: exec sox "$INFILE" $SOXFMT - $TRIMFX $RGFX $MYFX
> 
> That works perfect for me. I have now:
> 
> command: exec sox "$INFILE" $SOXFMT - $TRIMFX $RGFX $MYFILTER $MYFADE
> env: !!omap
> - MYFADE: ''
> - MYFILTER: ''
> tryorder: 0
> 
> Thanks.

Thanks for confirming.  Btw, did you forget to Cc: the list?
Reply-all is the convention, here; since I don't require or even
encourage mailing list subscriptions, public mail archives are
more important than mailing lists IMHO :>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: SOX_OPTS gone?
  2019-11-02 21:16     ` Eric Wong
@ 2019-11-04  6:21       ` Rene Maurer
  0 siblings, 0 replies; 4+ messages in thread
From: Rene Maurer @ 2019-11-04  6:21 UTC (permalink / raw)
  To: Eric Wong; +Cc: dtas-all

Eric Wong <e@80x24.org> wrote:

> Btw, did you forget to Cc: the list?  Reply-all is the convention,
> here; since I don't require or even encourage mailing list
> subscriptions, public mail archives are more important than mailing
> lists IMHO :>

Please excuse, I have done just "Reply" instead of "Reply-all" in in the
last posts.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-11-04  6:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-01 14:19 SOX_OPTS gone? Rene Maurer
2019-11-01 22:10 ` Eric Wong
     [not found]   ` <87a79eu0jo.fsf@alperose.cumparsita.ch>
2019-11-02 21:16     ` Eric Wong
2019-11-04  6:21       ` Rene Maurer

Code repositories for project(s) associated with this public inbox

	https://80x24.org/dtas.git/

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