everything related to duct tape audio suite (dtas)
 help / color / 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, back to index

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

everything related to duct tape audio suite (dtas)

Archives are clonable:
	git clone --mirror https://80x24.org/dtas-all
	git clone --mirror http://ou63pmih66umazou.onion/dtas-all

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.audio.dtas
	nntp://ou63pmih66umazou.onion/inbox.comp.audio.dtas

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git