Skip to content

Instantly share code, notes, and snippets.

@mgoldey
Created December 4, 2017 23:04
Show Gist options
  • Select an option

  • Save mgoldey/28b17fac92a75d778dc3dcbca95799aa to your computer and use it in GitHub Desktop.

Select an option

Save mgoldey/28b17fac92a75d778dc3dcbca95799aa to your computer and use it in GitHub Desktop.
#!/bin/bash
in=$1
# colors that work are pink, white, brown, blue?, violet?, grey?
sf1=0.90; sf2=0.10; \
sox -m \
-v $(echo "$(sox $in -n stat -v 2>&1) * ${sf1}" | bc -l) $in \
-v ${sf2} <(sox $in -p synth pinknoise) \
-b 16 $(echo pink_${in})
@mgoldey

mgoldey commented Dec 4, 2017

Copy link
Copy Markdown
Author

Noise colors are described here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment