blob: 8b634cc95e836e7b6ef20facd18d082a7cdba2a3 (
plain)
1
2
3
4
5
6
7
8
9
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
exec play -n synth $noise_type
|