|
From: Lasse Kärkkäi. <tr...@us...> - 2011-02-09 13:04:03
|
Module: editor Branch: master Commit: d5d34308dc48f64726569f0f39525c945e1d9d40 Author: Lasse Karkkainen <tro...@tr...> Date: Wed Feb 9 14:03:50 2011 +0100 A little more detail for pitch detection --- pitch.cc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/pitch.cc b/pitch.cc index c06d1af..4c965d1 100644 --- a/pitch.cc +++ b/pitch.cc @@ -6,7 +6,7 @@ static const unsigned FFT_P = 12; // FFT size setting, will use 2^FFT_P sample FFT static const std::size_t FFT_N = 1 << FFT_P; // FFT size in samples -static const std::size_t FFT_STEP = 1024; // Step size in samples, should be <= 0.25 * FFT_N. Low values cause high CPU usage. +static const std::size_t FFT_STEP = 512; // Step size in samples, should be <= 0.25 * FFT_N. Low values cause high CPU usage. // Limit the range to avoid noise and useless computation static const double FFT_MINFREQ = 45.0; |