[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Apply source only once
From: |
Eric Wong |
Subject: |
Re: Apply source only once |
Date: |
Fri, 29 Apr 2016 19:41:33 +0000 |
Rene Maurer <address@hidden> 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.