Example of guitar tuner using goertzel and histogram.pl
authorHarvie <tomas@mudrunka.cz>
Fri, 3 Aug 2012 20:33:16 +0000 (22:33 +0200)
committerHarvie <tomas@mudrunka.cz>
Fri, 3 Aug 2012 20:33:16 +0000 (22:33 +0200)
c/goertzel/README.md
c/goertzel/guitar-tuner.sh [new file with mode: 0755]

index 315c7be0f95d22de9708d9e29d4936330adbbe4b..ee9cd805833872f4996b0cc24f43064421d62f34 100644 (file)
@@ -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 (executable)
index 0000000..2f3dba4
--- /dev/null
@@ -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
This page took 0.155557 seconds and 4 git commands to generate.