From: Dan White Date: Thu, 6 Mar 2025 16:56:57 +0000 (-0600) Subject: noise: add help X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=63b0953260e14a218bd4019e93d090b3284bea13;p=pubbin.git noise: add help --- diff --git a/noise b/noise index 022754d..718003a 100755 --- a/noise +++ b/noise @@ -4,6 +4,14 @@ DEFAULT_GAIN="26" + +if [ "$1" = "-h" ]; then + echo "Generate 1/f2 noise" + echo "Usage: $(basename $0) [gain]" + echo " gain - in dB (default: $DEFAULT_GAIN)" + exit +fi + GAIN=${1:-$DEFAULT_GAIN} echo "gain: ${GAIN}"