From df420d23dc7c53b808aa80210898265814671c7b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 24 Jan 2022 02:20:37 +0000 Subject: splitfx: support per-track environment variables This allows setting the `FX' env on a per-track basis, since some recordings may have massive dynamic shifts which aren't desirable for casual listening or broadcast playback. --- lib/dtas/splitfx.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dtas/splitfx.rb b/lib/dtas/splitfx.rb index 8454d6a..1ce2007 100644 --- a/lib/dtas/splitfx.rb +++ b/lib/dtas/splitfx.rb @@ -299,6 +299,7 @@ class DTAS::SplitFX # :nodoc: t.fade_in = $1.split(/\s+/) when %r{\Afade_out=(.+)\z} # $1 = "t 4" or just "4" t.fade_out = $1.split(/\s+/) + when %r{\Aenv\.([^=]+)=(.+)\z} then t.env[$1] = -$2 when %r{\A\.(\w+)=(.+)\z} then t.comments[$1] = $2 else raise ArgumentError, "unrecognized arg(s): #{xs(argv)}" -- cgit v1.2.3-24-ge0c7