Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # wav2differential.sh - convert mono game tape audio to 2 stereo
- # usage: wav2differential.sh infile.wav
- # (creates infile-differential.wav)
- # scruss - 2016-06-07
- # method by ‘mcleod_ideafix’; many thanks / greetz
- # — https://retrocomputing.stackexchange.com/a/774/439
- base="${1%.wav}"
- sox -q --norm=-3 "$1" -b 16 "${base}-n.wav"
- sox -q "${base}-n.wav" "${base}-ni.wav" vol -1.0
- sox -q --norm=-0.1 -M -c 1 "${base}-n.wav" -c 1 "${base}-ni.wav" "${base}-differential.wav"
- rm -f "${base}-n.wav" "${base}-ni.wav"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement