[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] source/splitfx: default tracklist for single-track files
From: |
Eric Wong |
Subject: |
[PATCH] source/splitfx: default tracklist for single-track files |
Date: |
Sun, 28 Dec 2014 10:56:43 +0000 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] source/splitfx: default tracklist for single-track files,
Eric Wong <=