From: Harvie Date: Fri, 3 Aug 2012 20:33:16 +0000 (+0200) Subject: Example of guitar tuner using goertzel and histogram.pl X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=2a1679b4652e128ebdcc270d4667e217f309e58b;p=mirrors%2FPrograms.git Example of guitar tuner using goertzel and histogram.pl --- diff --git a/c/goertzel/README.md b/c/goertzel/README.md index 315c7be..ee9cd80 100644 --- a/c/goertzel/README.md +++ b/c/goertzel/README.md @@ -15,9 +15,9 @@ Scriptable tone detection and audio analysis * **dtmf.sh**: decodes DTMF signals in audio * **histogram.pl**: shows goertzel output in ASCII graphs * **histogram.sh**: example using histogram.pl to draw realtime equalizer + * **guitar-tuner.sh**: example using histogram.pl to tune guitar (currently only to low E) * **sleepmon.sh**: Generates frequency on soundcard output and detects it on input * Can be used to detect and log motion using soundcard and PIR sensor or NC switch * **sleepplot.sh**: Generates gnuplot graph from sleeplog * TODO - * Guitar tuner * Send me more... diff --git a/c/goertzel/guitar-tuner.sh b/c/goertzel/guitar-tuner.sh new file mode 100755 index 0000000..2f3dba4 --- /dev/null +++ b/c/goertzel/guitar-tuner.sh @@ -0,0 +1,8 @@ +#!/bin/sh +#Example of guitar tuner using goertzel: +#165Hz = Low E +#How to tune: +#There are 3 frequencies, you have to make the middle one (target frequency) most loud +#and the other two surrounding it shoud show approximately same intensity + +arecord -r 44100 | ./goertzel -r 44100 -f 150 -f 165 -f 180 | ./histogram.pl