Class: DTAS::SplitFX::T
- Inherits:
-
Struct
- Object
- Struct
- DTAS::SplitFX::T
- Defined in:
- lib/dtas/splitfx.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#comments ⇒ Object
Returns the value of attribute comments.
-
#env ⇒ Object
Returns the value of attribute env.
-
#fade_in ⇒ Object
Returns the value of attribute fade_in.
-
#fade_out ⇒ Object
Returns the value of attribute fade_out.
-
#tstart ⇒ Object
Returns the value of attribute tstart.
Instance Method Summary collapse
Instance Attribute Details
#comments ⇒ Object
Returns the value of attribute comments
22 23 24 |
# File 'lib/dtas/splitfx.rb', line 22 def comments @comments end |
#env ⇒ Object
Returns the value of attribute env
22 23 24 |
# File 'lib/dtas/splitfx.rb', line 22 def env @env end |
#fade_in ⇒ Object
Returns the value of attribute fade_in
22 23 24 |
# File 'lib/dtas/splitfx.rb', line 22 def fade_in @fade_in end |
#fade_out ⇒ Object
Returns the value of attribute fade_out
22 23 24 |
# File 'lib/dtas/splitfx.rb', line 22 def fade_out @fade_out end |
#tstart ⇒ Object
Returns the value of attribute tstart
22 23 24 |
# File 'lib/dtas/splitfx.rb', line 22 def tstart @tstart end |
Instance Method Details
#commit(advance_track_samples) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/dtas/splitfx.rb', line 23 def commit(advance_track_samples) tlen = advance_track_samples - tstart trimfx = "trim #{tstart}s #{tlen}s" if fade_in trimfx << " #{fade_in}" end if fade_out tmp = fade_out.dup fade_out_len = tmp.pop or raise ArgumentError, "fade_out needs a time value" fade_type = tmp.pop # may be nil fade = " fade #{fade_type} 0 #{tlen}s #{fade_out_len}" trimfx << fade end env["TRIMFX"] = trimfx end |