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: Adding fade effect
Date: Wed, 14 Jan 2015 09:06:46 +0000	[thread overview]
Message-ID: <20150114090646.GA6753@dcvr.yhbt.net> (raw)
In-Reply-To: <20150114055654.517bf6a6@loco5>

Rene Maurer <rmnet@mailc.net> wrote:
> 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!

Ah, OK, I didn't realize you wanted you wanted to fade out immediately
(as opposed to fadiing out the last few seconds of every song
 as is typical for some radio stations).

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

OK, I thought you wanted something like a crossfade effect in MPD
where you fade out every song.  However, fade-in does not seem
to work right if seeking.

But just trying "fade 5 =0 5" seems to work right as long as you
do not seek, it just sounds horrible with a lot of silence :<

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

Ah, a few lines below, there is:

  Effects which modify the length of the audio is not recommended here,
  as seek functionality will be impaired.

I can make the following change (wording suggestions appreciated!):

--- a/Documentation/dtas-player_effects.txt
+++ b/Documentation/dtas-player_effects.txt
@@ -10,6 +10,7 @@ They are applied in the order described.
   - ReplayGain (simple vol/gain changes)
   - anything which does not change the length of the audio:
     vol, stereo, highpass, lowpass, loudness, bass, treble, equalizer, ...
+  - ...or the fade effect for fading tracks out.
 
   Modifying source effects should introduce no extra gaps in playback.
   Effects which modify the length of the audio is not recommended here,

-- 
EW


      reply	other threads:[~2015-01-14  9:06 UTC|newest]

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

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=20150114090646.GA6753@dcvr.yhbt.net \
    --to=e@80x24.org \
    --cc=dtas-all@nongnu.org \
    --cc=rmnet@mailc.net \
    /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
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

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