From e796df39fcb31fe174d6a21ed0039f1c222d5d05 Mon Sep 17 00:00:00 2001 From: Von Random Date: Sat, 29 Apr 2017 20:45:09 +0300 Subject: [PATCH] add noise generator script --- noise | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 noise diff --git a/noise b/noise new file mode 100755 index 0000000..fe3415a --- /dev/null +++ b/noise @@ -0,0 +1,10 @@ +#!/usr/bin/env zsh + +case $1 in + w) noise_type='whitenoise' ;; + b) noise_type='brownnoise' ;; + p) noise_type='pinknoise' ;; + *) printf "%s is a wrong noise type\n" $1 >&2 ; exit 1 ;; +esac + +play -n synth $noise_type