about summary refs log tree commit homepage
path: root/bin/dtas-splitfx
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-05-17 02:00:47 +0000
committerEric Wong <e@80x24.org>2015-05-17 02:19:58 +0000
commit93ff56a7a27a166ce92307c470d4f54c3c28aa53 (patch)
tree2981db2a951cd1f4f61c259dbbfe3bf5621d553f /bin/dtas-splitfx
parent8705ec176fc03314da215af2d17935b3178f83d9 (diff)
downloaddtas-93ff56a7a27a166ce92307c470d4f54c3c28aa53.tar.gz
It can often be useful to expose only part of a track for quick
inspection.  This lets us do that.
Diffstat (limited to 'bin/dtas-splitfx')
-rwxr-xr-xbin/dtas-splitfx1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/dtas-splitfx b/bin/dtas-splitfx
index a764cb3..d28cc5d 100755
--- a/bin/dtas-splitfx
+++ b/bin/dtas-splitfx
@@ -18,6 +18,7 @@ OptionParser.new('', 24, '  ') do |op|
   op.on('-C', '--compression FACTOR') { |val| opts[:compression] = val }
   op.on('-r', '--rate RATE') { |val| opts[:rate] = val }
   op.on('-b', '--bits RATE', Integer) { |val| opts[:bits] = val }
+  op.on('-t', '--trim POSITION') { |val| opts[:trim] = val.tr(',', ' ') }
   op.parse!(ARGV)
 end