everything related to duct tape audio suite (dtas)
 help / color / mirror / code / Atom feed
From: Rene Maurer <rmnet@mailc.net>
To: Eric Wong <e@80x24.org>
Cc: dtas-all@nongnu.org
Subject: Re: Adding fade effect
Date: Wed, 14 Jan 2015 05:56:54 +0100	[thread overview]
Message-ID: <20150114055654.517bf6a6@loco5> (raw)
In-Reply-To: <20150112220116.GA5148@dcvr.yhbt.net>

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

> command: exec sox "$INFILE" $SOXFMT - $TRIMFX fade 0 =0 5
> 
> I think the above fade example requires sox 14.4.x and later,

I have SoX v14.4.1 but the "=0 syntax" isn't supported.

Surprisingly doing just

command: exec sox "$INFILE" $SOXFMT - $TRIMFX fade 0 5 5

on a playing song starts fade out immediate and does the job (fade out
current song) as desired!

> if you're using an older version you'll probably need to calculate
> the "=0" offset based on the length of the track itself, but
> also need to take into account the offset set by the $TRIMFX
> variable (if you're seeking)

This was my first idea but as already said, this seams not to be
necessary...

> Again, I recommend editing the source instead of the sink as it won't
> restart the device and for most effects, there won't be an audible
> gap.

Done. It works well!

The documentation http://dtas.80x24.org/dtas-player_effects.txt brought
me on the wrong way:

,----
| 1. source effects
|
|  - anything which does not change the length of the audio
`----

René


  reply	other threads:[~2015-01-14  4:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-12 11:23 Rene Maurer
2015-01-12 22:01 ` Eric Wong
2015-01-14  4:56   ` Rene Maurer [this message]
2015-01-14  9:06     ` Eric Wong

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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=20150114055654.517bf6a6@loco5 \
    --to=rmnet@mailc.net \
    --cc=dtas-all@nongnu.org \
    --cc=e@80x24.org \
    --subject='Re: Adding fade effect' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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

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