I will return to the beginning of this thread with a few questions to
@STxAxTIC I implanted your frequency acquisition program. Finally. It seems to work perfectly. The only thing I need to clarify: The resulting frequency in your second example is given by the number of samples analyzed. It is so? Therefore, a small number of samples is sufficient to obtain low frequencies. In your example, these are pixels, my solution is _SNDGETPOS - 300 TO _SNDGETPOS + 300. This way I get 600 audio samples, that's enough to get low frequencies
. But if I wanted a frequency of 20 KHz, I would need to analyze the whole second (44100 samples for precise detection). Am I getting it right, or am I completely out of it again?Wait. What I'm writing is nonsense. After all, a high frequency can be interspersed several times, even in a small number of samples. So it will be possible to construct the frequency detection as an average in six hundred samples. This is an imperceptible moment to the ear (0.014 seconds) but is enough to detect the frequency. Then it can be argued that the average frequency in a 0.014 second sample has some value. This will be the right solution, right?