add noise generator script
This commit is contained in:
parent
aaa1ac24f4
commit
e796df39fc
1 changed files with 10 additions and 0 deletions
10
noise
Executable file
10
noise
Executable file
|
@ -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
|
Loading…
Reference in a new issue