diff options
author | Eric Wong <e@80x24.org> | 2014-12-27 08:01:13 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-12-27 09:02:15 +0000 |
commit | 6c025858196b348c83ddd50e9233eb85c86c71d6 (patch) | |
tree | 83fe17ab113d09f2da7fabc383cf4c2b0e75580a /lib/dtas/splitfx.rb | |
parent | a8bb7abac5739a060e094f19d1dbc04e2c361b81 (diff) | |
download | dtas-6c025858196b348c83ddd50e9233eb85c86c71d6.tar.gz |
This allows splitfx users to test CUE breakpoints and run file-specific effects without interrupting their normal flow.
Diffstat (limited to 'lib/dtas/splitfx.rb')
-rw-r--r-- | lib/dtas/splitfx.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/dtas/splitfx.rb b/lib/dtas/splitfx.rb index ac39233..9af3faf 100644 --- a/lib/dtas/splitfx.rb +++ b/lib/dtas/splitfx.rb @@ -12,6 +12,7 @@ class DTAS::SplitFX # :nodoc: '$TRIMFX $RATEFX $DITHERFX' include DTAS::Process include DTAS::XS + attr_reader :infile, :env class Skip < Struct.new(:tstart) # :nodoc: def commit(_) @@ -76,6 +77,7 @@ class DTAS::SplitFX # :nodoc: } @tracks = [] @infmt = nil # wait until input is assigned + @cuebp = nil # for playback end def _bool(hash, key) @@ -334,4 +336,10 @@ class DTAS::SplitFX # :nodoc: end false end + + def cuebreakpoints + rv = @cuebp and return rv + require_relative 'cue_index' + @cuebp = @tracks.map { |t| DTAS::CueIndex.new(1, "#{t.tstart}s") } + end end |