From 0eeabac91d944b61783ca2d8451f17a9aa58ba24 Mon Sep 17 00:00:00 2001 From: Matt Rajca Date: Wed, 14 Dec 2016 22:14:37 -0600 Subject: [PATCH] Use proper hamming function The constants were reversed. See: https://www.mathworks.com/help/signal/ref/hamming.html --- cqt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cqt.py b/cqt.py index 8ff683b..2013d1a 100644 --- a/cqt.py +++ b/cqt.py @@ -40,7 +40,7 @@ def slow(self, x) : return np.array(cq) def hamming(length) : - return 0.46 - 0.54 * np.cos(2 * pi * np.arange(length) / length) + return 0.54 - 0.46 * np.cos(2 * pi * np.arange(length) / length) # np.arange() def test() :