diff options
author | Eric Wong <e@80x24.org> | 2015-05-20 09:33:43 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-05-20 09:33:43 +0000 |
commit | 3bac94b99413f5ab5af684431b3155fffef042ad (patch) | |
tree | 5a7f3afb629bd46aa4c7847d8a9ee999eef1cede | |
parent | ed249a91f224f7abaaf0484da8a41a0ed3ba6299 (diff) | |
download | dtas-3bac94b99413f5ab5af684431b3155fffef042ad.tar.gz |
-rw-r--r-- | lib/dtas/splitfx.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/dtas/splitfx.rb b/lib/dtas/splitfx.rb index 4b13d14..e3dcf61 100644 --- a/lib/dtas/splitfx.rb +++ b/lib/dtas/splitfx.rb @@ -16,7 +16,8 @@ class DTAS::SplitFX # :nodoc: include DTAS::XS attr_reader :infile, :env, :command - class UTrim + # for --trim on the command-line + class UTrim # :nodoc: attr_reader :env, :comments def initialize(trim_arg, env, comments) @env = env.merge("TRIMFX" => "trim #{trim_arg}") @@ -24,12 +25,14 @@ class DTAS::SplitFX # :nodoc: end end + # declare section to skip class Skip < Struct.new(:tbeg) # :nodoc: def commit(_) # noop end end + # a standard "track" for splitfx class T < Struct.new(:env, :comments, :tbeg, :fade_in, :fade_out) # :nodoc: def commit(advance_track_samples) tlen = advance_track_samples - tbeg |