This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Increase FFT range(in time) if 2048 samples used in the fourier transform
#2
With more samples, it takes longer to collect these for the FFT and correspondingly to fill the buffers for the waterfall diagram. The length is determined by the size of these buffers and the width of the diagram. In the “Audio Spectrum” experiment, there are 256 slots for the frequencies and the overall data size is 32768. So, at most 128 lines are displayed.

Audio is typically recorded at a rate of 44.1 or 48 kHz. In theory, the displayed time span is 128×#samples/48000 (or 44100). In practice, up to 0.05s of data might be discarded and the displayed time span is longer.

If you would like to display the complete duration, you could set the buffer size in https://github.com/phyphox/phyphox-exper...um.phyphox at
Code:
    <container size="32768">tmap</container>
    <container size="32768">fmap</container>
    <container size="32768">fftmap</container>
to 0, i.e. “infinite”.

I am not sure how long phyphox – or the smartphone OS takes this well. The app might crash or be killed…
Reply


Messages In This Thread
RE: Increase FFT range(in time) if 2048 samples used in the fourier transform - by Jens Noriʇzsɔɥ - 02-28-2023, 10:13 PM

Forum Jump: