From e6a2ff2a3984320b1b83f5051709880a8b9d3708 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 10 May 2015 10:12:34 +0000 Subject: splitfx: --bits and --rate for quick-n-dirty generic targets generic targets (e.g. "wav") is useful for quickly checking if clipping is introduced by dither and resampling, so we'll support changing the sample rate and bits-per-sample from the command-line so users don't need to setup their own targets or wait on FLAC encoding. --- bin/dtas-splitfx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin') diff --git a/bin/dtas-splitfx b/bin/dtas-splitfx index edd7dd3..b5741a0 100755 --- a/bin/dtas-splitfx +++ b/bin/dtas-splitfx @@ -16,6 +16,8 @@ OptionParser.new('', 24, ' ') do |op| op.on('-D', '--no-dither') { |val| opts[:no_dither] = true } op.on('-O', '--outdir OUTDIR') { |val| opts[:outdir] = val } 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.parse!(ARGV) end -- cgit v1.2.3-24-ge0c7