about summary refs log tree commit homepage
path: root/lib/dtas
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-12-28 10:30:28 +0000
committerEric Wong <e@80x24.org>2014-12-28 10:50:26 +0000
commitbbe63ddd50947195f6ef45d46dd87af4ba4de526 (patch)
tree754a10ab9c238c1aecb02c85212e6679f5a1f2a8 /lib/dtas
parent62fdf0de990975f0eb95e83d345ffc461cfa9aef (diff)
downloaddtas-bbe63ddd50947195f6ef45d46dd87af4ba4de526.tar.gz
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.
Diffstat (limited to 'lib/dtas')
-rw-r--r--lib/dtas/source/splitfx.rb4
1 files changed, 3 insertions, 1 deletions
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