summaryrefslogtreecommitdiff
path: root/examples/micscope/test/tuner.script
diff options
context:
space:
mode:
Diffstat (limited to 'examples/micscope/test/tuner.script')
-rw-r--r--examples/micscope/test/tuner.script31
1 files changed, 31 insertions, 0 deletions
diff --git a/examples/micscope/test/tuner.script b/examples/micscope/test/tuner.script
new file mode 100644
index 0000000..4e0e480
--- /dev/null
+++ b/examples/micscope/test/tuner.script
@@ -0,0 +1,31 @@
+# The tuner on a take, at its playhead: five notes where the strongest FFT
+# peak is not (or not only) the note. Expected, by screenshot:
+# E1 0 cents (41.2 Hz) bass, 2nd harmonic loudest
+# E2 0 cents (82.4 Hz) guitar, weak fundamental
+# A4 +12 cents (443.1 Hz) sharp
+# D4 0 cents (293.7 Hz) fundamental missing
+# C7 0 cents (2093 Hz) piccolo
+console open test/tones.wav
+click 107 150
+frames 20
+screenshot .zig-cache/micscope/tuner-e1.png
+click 290 150
+frames 20
+screenshot .zig-cache/micscope/tuner-e2.png
+click 472 150
+frames 20
+screenshot .zig-cache/micscope/tuner-a4.png
+click 654 150
+frames 20
+screenshot .zig-cache/micscope/tuner-d4.png
+click 837 150
+frames 20
+screenshot .zig-cache/micscope/tuner-c7.png
+# Another reference pitch: A4 = 443 makes the sharp A4 in tune.
+click 472 150
+key right_bracket
+key right_bracket
+key right_bracket
+expect a4 443
+frames 20
+screenshot .zig-cache/micscope/tuner-a443.png