From 2a1679b4652e128ebdcc270d4667e217f309e58b Mon Sep 17 00:00:00 2001 From: Harvie Date: Fri, 3 Aug 2012 22:33:16 +0200 Subject: [PATCH 1/1] Example of guitar tuner using goertzel and histogram.pl --- c/goertzel/README.md | 2 +- c/goertzel/guitar-tuner.sh | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 c/goertzel/guitar-tuner.sh 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 -- 2.30.2