diff options
author | Eric Wong <e@80x24.org> | 2015-05-10 10:12:34 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-05-10 11:21:56 +0000 |
commit | e6a2ff2a3984320b1b83f5051709880a8b9d3708 (patch) | |
tree | 497cb091d23c4f151c00d5ee068f44da0d97dbb1 /bin/dtas-splitfx | |
parent | 03b1303b1c7511fdd1a6b2f63d7c509e822a6a38 (diff) | |
download | dtas-e6a2ff2a3984320b1b83f5051709880a8b9d3708.tar.gz |
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.
Diffstat (limited to 'bin/dtas-splitfx')
-rwxr-xr-x | bin/dtas-splitfx | 2 |
1 files changed, 2 insertions, 0 deletions
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 |