From 3bac94b99413f5ab5af684431b3155fffef042ad Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 20 May 2015 09:33:43 +0000 Subject: splitfx: documentation for subclasses --- lib/dtas/splitfx.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3-24-ge0c7