From 3cd70ee110be227289e96ed4d7bc7dcc2af9c183 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Mon, 6 Jul 2020 11:57:22 +0200 Subject: [PATCH] tweak beep-charlie --- scripts/beep-charlie | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/beep-charlie b/scripts/beep-charlie index 5490c84..29030a3 100755 --- a/scripts/beep-charlie +++ b/scripts/beep-charlie @@ -5,7 +5,7 @@ test -f $lock && exit 1 || touch $lock head -c 8 /dev/urandom | \ hexdump -v -e '/1 "%u\n"' | \ awk '{ split("0,3,5,6,7,10,12",a,","); \ - for (i = 0; i < 1; i+= 0.00011) \ + for (i = 0; i < 1; i+= 0.00012) \ printf("%08X\n", 60*sin(450*exp((a[$1 % 8]/12)*log(2))*i)) }' | \ xxd -r -p | \ aplay -c 1 -f S32_LE -r 48000 -D plug:default