diff options
Diffstat (limited to 'lib/dtas')
-rw-r--r-- | lib/dtas/source/splitfx.rb | 4 |
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 |