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.6 required=3.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_BLOCKED,URIBL_BLOCKED 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 A6CBE1F7D1 for ; Mon, 12 Jan 2015 22:01:27 +0000 (UTC) Received: from localhost ([::1]:36475 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAn39-0003il-5E for dtas-all@80x24.org; Mon, 12 Jan 2015 17:01:27 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48947) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAn37-0003ib-B7 for dtas-all@nongnu.org; Mon, 12 Jan 2015 17:01:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YAn32-0003La-1N for dtas-all@nongnu.org; Mon, 12 Jan 2015 17:01:25 -0500 Received: from dcvr.yhbt.net ([64.71.152.64]:40086) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAn31-0003LJ-Ry for dtas-all@nongnu.org; Mon, 12 Jan 2015 17:01:19 -0500 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id D232F1F7D1; Mon, 12 Jan 2015 22:01:16 +0000 (UTC) Date: Mon, 12 Jan 2015 22:01:16 +0000 From: Eric Wong To: Rene Maurer Subject: Re: Adding fade effect Message-ID: <20150112220116.GA5148@dcvr.yhbt.net> References: <20150112122353.2004b8bc@loco5> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150112122353.2004b8bc@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: > Hello > > I have two questions concerning sinks: > > 1. > What is the recommended way to add a fade effect like > > # play song.flac fade 0 15 5" > > to a sink? Sinks have no concept of which song is playing, however you can edit the source instead using "dtas-sourceedit sox". Change (or add) the following line starting with "command:" command: exec sox "$INFILE" $SOXFMT - $TRIMFX fade 0 =0 5 I think the above fade example requires sox 14.4.x and later, 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) > 2. > When I change for example the default sink with "dtas-sinkedit default" > and I then store the edited sink. Is the changed sink directly applied > or is a dtas-player restart required? It should be applied immediately upon exiting your editor. You'll probably hear an audible gap if you're using ALSA directly as your device gets restarted. 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. I think dtas-sourceedit will get inotify support in the next release. It'll allow you to hear changes with every save of the $EDITOR and not have to restart dtas-sourcedit on every change (similar to how the splitfx YAML file editing works in dtas.git)