From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 208.118.235.0/24 X-Spam-Status: No, score=-3.3 required=3.0 tests=AWL,BAYES_00 shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: dtas-all@80x24.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id B49D81F4E1 for ; Wed, 14 Jan 2015 09:06:57 +0000 (UTC) Received: from localhost ([::1]:44983 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBJui-0000ke-QU for dtas-all@80x24.org; Wed, 14 Jan 2015 04:06:56 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBJuf-0000ik-Ch for dtas-all@nongnu.org; Wed, 14 Jan 2015 04:06:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YBJua-0005Hm-KY for dtas-all@nongnu.org; Wed, 14 Jan 2015 04:06:53 -0500 Received: from dcvr.yhbt.net ([64.71.152.64]:36895) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBJua-0005HT-Ee for dtas-all@nongnu.org; Wed, 14 Jan 2015 04:06:48 -0500 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id DE2301F4E1; Wed, 14 Jan 2015 09:06:46 +0000 (UTC) Date: Wed, 14 Jan 2015 09:06:46 +0000 From: Eric Wong To: Rene Maurer Subject: Re: Adding fade effect Message-ID: <20150114090646.GA6753@dcvr.yhbt.net> References: <20150112122353.2004b8bc@loco5> <20150112220116.GA5148@dcvr.yhbt.net> <20150114055654.517bf6a6@loco5> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150114055654.517bf6a6@loco5> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 64.71.152.64 Cc: dtas-all@nongnu.org X-BeenThere: dtas-all@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dtas-all-bounces+dtas-all=80x24.org@nongnu.org Sender: dtas-all-bounces+dtas-all=80x24.org@nongnu.org Rene Maurer wrote: > Eric Wong 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