random script dump
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

noisegen 226B

12345678910
  1. #!/usr/bin/env zsh
  2. case $1 in
  3. w) noise_type='whitenoise' ;;
  4. b) noise_type='brownnoise' ;;
  5. p) noise_type='pinknoise' ;;
  6. *) printf "%s is a wrong noise type\n" $1 >&2 ; exit 1 ;;
  7. esac
  8. play -n synth $noise_type