POV-Ray : Newsgroups : povray.off-topic : Frequency locked loop? : Re: Frequency locked loop? Server Time
6 Sep 2024 01:26:40 EDT (-0400)
  Re: Frequency locked loop?  
From: scott
Date: 16 Mar 2009 11:50:42
Message: <49be7552@news.povray.org>
>> The basic situation is that I want to program a piano tuner (we'll see 
>> about
>> having the guts to tune the thing).  It didn't take more than a couple 
>> hours to
>> write a c program that takes audio input, FFT's it, and tells you the 
>> closest
>> pitch.  The problem is the frequency resolution.  I essentially get the 
>> refresh
>> rate for resolution, e.g. 10 updates per second -> 10 Hz resolution.
>
> That is not true. Your resolution mainly depends on your sampling 
> frequency.

I thought that if you did an FFT on 0.1 seconds of data the frequency 
resolution would always be 10 Hz, no matter what sampling rate you used? 
AIUI using higher sampling rates just lets you identify higher frequencies, 
if you want more frequency resolution you need longer sample times.  Hence I 
recommend the OP just uses 2 seconds of audio data for the FFT rather than 
0.1 seconds.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.