Advertisement
Guest User

Untitled

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