ARP library
[mirrors/Programs.git] / c / goertzel / dtmf.sh
index 2c6547d3a27672667c4f1cfa4708b155b36ba001..e01571ed3050d484248dbf5a546058f399b2dfa2 100755 (executable)
@@ -8,7 +8,7 @@
 
 tresh=10
 last='';
-./goertzel -i -q -a -r 8000 -s 400 -t $tresh -f 697 -f 770 -f 852 -f 941 -f 1209 -f 1336 -f 1477 -f 1633 $@ | while read line; do
+./goertzel -n B -q -l c -r 8000 -d 20 -t $tresh -f 697 -f 770 -f 852 -f 941 -f 1209 -f 1336 -f 1477 -f 1633 $@ | while read line; do
        #echo "$line";
 
        #Get time
@@ -24,16 +24,6 @@ last='';
        g="$(echo "$line" | cut -f 8)";
        h="$(echo "$line" | cut -f 9)";
 
-       #Compare values to treshold
-       test $a -gt $tresh && a=true || a=false
-       test $b -gt $tresh && b=true || b=false
-       test $c -gt $tresh && c=true || c=false
-       test $d -gt $tresh && d=true || d=false
-       test $e -gt $tresh && e=true || e=false
-       test $f -gt $tresh && f=true || f=false
-       test $g -gt $tresh && g=true || g=false
-       test $h -gt $tresh && h=true || h=false
-
        #echo "$pos: $a $b $c $d $e $f $g $h";
        state="$a$b$c$d$e$f$g$h";
 
This page took 0.095481 seconds and 4 git commands to generate.