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: Apply source only once
Date: Fri, 29 Apr 2016 19:41:33 +0000	[thread overview]
Message-ID: <20160429194133.GA25723@dcvr.yhbt.net> (raw)
In-Reply-To: <20160429140009.B15BDC0001E@frontend1.nyi.internal>

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


      reply	other threads:[~2016-04-29 19:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-29 14:00 Apply source only once Rene Maurer
2016-04-29 19:41 ` 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=20160429194133.GA25723@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).