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=-2.4 required=3.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_PASS,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 E7EEE1F980 for ; Fri, 29 Apr 2016 19:42:07 +0000 (UTC) Received: from localhost ([::1]:56011 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awEIe-0000Nu-5z for dtas-all@80x24.org; Fri, 29 Apr 2016 15:42:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awEIW-00006a-0B for dtas-all@nongnu.org; Fri, 29 Apr 2016 15:42:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1awEIK-0002rG-Am for dtas-all@nongnu.org; Fri, 29 Apr 2016 15:41:50 -0400 Received: from dcvr.yhbt.net ([64.71.152.64]:60544) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awEIK-0002k4-5F for dtas-all@nongnu.org; Fri, 29 Apr 2016 15:41:44 -0400 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id CE9831F980; Fri, 29 Apr 2016 19:41:33 +0000 (UTC) Date: Fri, 29 Apr 2016 19:41:33 +0000 From: Eric Wong To: Rene Maurer Subject: Re: Apply source only once Message-ID: <20160429194133.GA25723@dcvr.yhbt.net> References: <20160429140009.B15BDC0001E@frontend1.nyi.internal> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160429140009.B15BDC0001E@frontend1.nyi.internal> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 64.71.152.64 X-BeenThere: dtas-all@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: everything related to dtas List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dtas-all@nongnu.org Errors-To: dtas-all-bounces+dtas-all=80x24.org@nongnu.org Sender: "dtas-all" Rene Maurer wrote: > Is there a possibility to apply a source command only to the current > playing song. I mean, the source should be applied to the current song > and then when the "next" song is played, the "old" source is applied > (without user interaction). Somewhat... but personally, I would not do this: Script it by using "dtas-ctl source ed ..." based on using the "watch" command in the protocol. Sorry, there isn't a command-line tool specifically for using "watch", but dtas-console uses it. Here's a bit of Ruby that should work: require 'dtas/unix_client' c = DTAS::UNIXClient.new c.req('watch') while res = c.res_wait p res # do something with res end ...Instead, I use splitfx YAML files like: https://dtas.80x24.org/examples/splitfx.sample.yml I like having files around which I can save/edit and store in version control rather than ephemeral commands which are more easily lost. I edit the "command" section as needed. It could even be a standalone script/command for processing[1] since big sox commands get ugly in YAML. You may remove the "tracks" section for playback. [1] I have some gnarly Ruby scripts for some files and am working on libifying some of it.