Discussion:
Apply source only once
Rene Maurer
2016-04-29 14:00:07 UTC
Permalink
Hello

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).

Best René
Eric Wong
2016-04-29 19:41:33 UTC
Permalink
Post by Rene Maurer
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.

Loading...