everything related to duct tape audio suite (dtas)
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH] source/splitfx: default tracklist for single-track files
@ 2014-12-28 10:56  7% Eric Wong
  0 siblings, 0 replies; 1+ results
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 related	[relevance 7%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2014-12-28 10:56  7% [PATCH] source/splitfx: default tracklist for single-track files 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).