everything related to duct tape audio suite (dtas)
 help / color / mirror / code / Atom feed
* [PATCH] source/splitfx: default tracklist for single-track files
@ 2014-12-28 10:56 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2014-12-28 10:56 UTC (permalink / raw)
  To: dtas-all

While the splitfx source is intended for applying effects to
untracked audio files (e.g. transfers of vinyl records or
live concert recordings), it should be useful for applying
effects to an already-tracked recording.
---
 lib/dtas/source/splitfx.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/dtas/source/splitfx.rb b/lib/dtas/source/splitfx.rb
index fee27fd..2b10e5c 100644
--- a/lib/dtas/source/splitfx.rb
+++ b/lib/dtas/source/splitfx.rb
@@ -35,7 +35,9 @@ class DTAS::Source::SplitFX < DTAS::Source::Sox # :nodoc:
     sfx = DTAS::SplitFX.new
     begin
       Dir.chdir(File.dirname(ymlfile)) do # ugh
-        sfx.import(@ymlhash = YAML.load(buf))
+        @ymlhash = YAML.load(buf)
+        @ymlhash['tracks'] ||= [ "t 0 default" ]
+        sfx.import(@ymlhash)
         sfx.infile.replace(File.expand_path(sfx.infile))
       end
       @splitfx = sfx
-- 
EW



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-12-28 10:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-28 10:56 [PATCH] source/splitfx: default tracklist for single-track files Eric Wong

Code repositories for project(s) associated with this inbox:

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