* Apply source only once
@ 2016-04-29 14:00 Rene Maurer
2016-04-29 19:41 ` Eric Wong
0 siblings, 1 reply; 2+ messages in thread
From: Rene Maurer @ 2016-04-29 14:00 UTC (permalink / raw)
To: dtas-all
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é
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Apply source only once
2016-04-29 14:00 Apply source only once Rene Maurer
@ 2016-04-29 19:41 ` Eric Wong
0 siblings, 0 replies; 2+ messages in thread
From: Eric Wong @ 2016-04-29 19:41 UTC (permalink / raw)
To: Rene Maurer; +Cc: dtas-all
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-04-29 19:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-29 14:00 Apply source only once Rene Maurer
2016-04-29 19:41 ` Eric Wong
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).