Questions tagged [fft]

The fast Fourier transform is an efficient algorithm to compute the discrete Fourier transform (DFT) and its inverse.

Filter by
Sorted by
Tagged with
1
vote
2answers
131 views

How to do FFT fractional time delay (SOLVED)

I am trying to time-shift a signal using the FFT, however I have encountered some strange effects that depend on the size of the time-shift. I need to be able to shift the time by an arbitrary amount -...
1
vote
2answers
87 views

Evaluate performance of FFT Windows

lately i've been interested in FFT windowing, i've experimented various windows in Matlab, that made me more curious: There are normalized parameters (CG, Scalloping loss etc...) for every window ...
0
votes
0answers
19 views

Detection time of a spur using FFT?

Say I have the following parameters, NFFT=2^14 Fs= 50 MHz main signal @ 22 MHz and its alias at 28 MHz at signal power -40 dbfs and a spur @ 2 MHz and its alias at 48 MHz Leave aside the alias's. ...
0
votes
1answer
554 views

Python tool for time-frequency analysis

I am trying to perform time-frequency analyses using the PyWavelets (pywt) toolkit for python. My ultimate goal is to perform time-frequency analyses for EEG signals but I am starting with something ...
1
vote
2answers
302 views

FFT of triangular wave

I am new in dsp.. so please bear with me. I want to plot FFT of a triangular wave. I am using the code below to first generate the triangular wave and then take its FFT ...
1
vote
2answers
93 views

Matlab and R functions for fft(): N-point FFT and dimension issue [closed]

In MATLAB, Y = fft(X,n,dim) returns the Fourier transform along the dimension dim. For example, if ...
2
votes
2answers
179 views

Explain Auto-Tune in a simple way

I have to do a presentation about Auto-Tune and its relation to the Fourier transform. What is a good explanation on how does Auto-Tune work?
0
votes
1answer
23 views

Matlab applying an FIR filter to a signal, generated in Matlab

I want to create an FIR in Matlab and apply it to a signal (also generated in Matlab). You will find the code below. I will put my questions in order from here. 1) The filter coefficients vector "b" ...
11
votes
6answers
5k views

Is there any practical application for performing a double Fourier transform? …or an inverse Fourier transform on a time-domain input?

In mathematics you can take the double derivative, or double integral of a function. There are many cases where performing a double derivative models a practical real-world situation, like finding the ...
0
votes
1answer
28 views

Aliasing correspondance with respect to DFT

Given a sampling frequency Fs lets say we plot the magnitude of the fft of a temporal signal $x$, for different frequencies above the Nyquist frequency, to show the effect of aliasing: ...
0
votes
0answers
8 views

Obtain points in signals which cause correlation

I've got two large .wav files (tens or hundreds of minutes each). I know that at some points these files contain very similar areas - actually, these areas are the ...
0
votes
2answers
42 views

Why there is error between My DFT and built in Matlab FFT?

I'm trying to implement DFT/IDFT and FFT/IFFT in Matlab and C. I got wrong values while I implement IDFT/IFFT. So I'm trying to find a mistake. Just for DFT, I used this algorithm to implement it in ...
0
votes
0answers
38 views

FFT Amplitude Resolution

What's the relationship between sample rate, sample length, ADC quantization, and FFT output amplitude resolution? Suppose I have N samples, sampled at Fs such that I can use a radix-2 FFT. My ADC ...
0
votes
0answers
16 views

What is wrong with band passing by inverse Fourier transforming a section of a signal's frequency spectrum? [duplicate]

If the question is unclear, here is what I mean in Python using scipy.fftpack: ifft(fft(arr)[x:y], len(arr)) What is wrong with this method of band passing?
0
votes
0answers
22 views

improving performance of KNN classifier on FFT

I need to classify whether a product is passing or failing based on a noise check. I have 100 labeled "good" product and 100 "bad" product. For each, I recorded the sound for 3 seconds and each chunk ...
1
vote
3answers
126 views

Reverse engineering a digital filter

I have 2 simultaneous signals that both are designed to measure eye movements. They are sampled at 250 Hz. We have 12 subject recordings. For 3 stable periods in each subject, we choose 256 points and ...
1
vote
2answers
68 views

Is spectral leakage normal for FFT?

I record a sample of 2000 data points, with a sampling rate of 40khz, so freq. resolution is 20hz. I multiplied the chunk of data with a Hanning window prior to doing the FFT. I recorded a 1khz test ...
0
votes
1answer
39 views

The frequency-domain spectrum obtained using MATLAB's FFT function seems inaccurate

I am using MATLAB R2018b on a Windows 10 PC. In order to obtain the frequency domain information of a signal, I'm applying MATLAB's FFT function. The signal of interest is obtained from an experiment ...
0
votes
0answers
36 views

Is the whole data needed for the fast fourier transform with an ongoing signal?

I sample an signal with around 840k values a second, to check the spectrum around <400kHz. But i can't save the whole data as it is just to much for my microcontroller. I know that for the ...
0
votes
2answers
97 views

Intermittent Harmonics, Is there a physical explanation?

I am doing some frequency analysis of a vibration signal from a spinning rotor, I am expecting to see peaks corresponding to the rotational frequency of the rotor. So the fundamental frequency ...
0
votes
0answers
535 views

How do I find the peak frequency of a wav file in python?

I am fairly new to python and signal processing and I was given a task to record audio for 'x' seconds and then find the peak frequency in the audio file. So far I have successfully implemented the ...
1
vote
2answers
101 views

Multi Resolution STFT for audio

I am looking at trying to achieve a multi resolution STFT analysis on a log sine sweep audio measurement. I have an impulse, and I would like to perform two different windowed length FFTs on the ...
1
vote
1answer
65 views

Why would FFT interpolation using zero-padding undershoot the true frequency of a single tone sinusoid?

Why would FFT interpolation by zero-padding or using the Chirp Z-Transform produce a maximum at a bin that corresponds to a frequency less than the input frequency of a single tone sinusoid? I am ...
0
votes
0answers
85 views

Normalizing FFT after recording with Pyaudio

I have a USB microphone that has a 24 bit ADC, however, Pyaudio doesn't allow for 24 bit encoding so I used 16 bit. I hope this is not an issue. Having said that, I hope to make sure I'm applying the ...
1
vote
1answer
52 views

What measurement errors occur in an inteferogram?

This question is bordering on physics, but it is the signal side that I am interested in so I hope this is the correct forum. I am very familiar with instrumental noise sources in CCD based ...
1
vote
2answers
81 views

Is the value of a frequency bin of a DFT-output the average of the 'real' frequency values within that bin's range?

I am wondering whether the value of a frequency bin with a certain resolution is the average of the fourier transform values of the 'real' frequencies within that bin's range.
-1
votes
1answer
33 views

LOW SIGNAL NOISE RATIO FFT

I am processing an audio signal with CS4244 codec at 24 bits and 48kHz. Every 2048 samples the FFT is calculated and its amplitude. Without input signal I get FFT values ​​close to 30dB. With maximum ...
2
votes
1answer
66 views

Serial filtering using FFT

lets say I have 3 audio filters for a realtime DSP application. For simplictity each has length 256 (as well as the input signal). The filters should work in series. Starting with filter IR h1(n) and ...
2
votes
1answer
62 views

Approximating Lorentzian Fourier transform with FFT

I have a Lorentzian frequency distribution $F(w) = \frac{1+iz}{1+z^2}$ Where $z = \frac{w-\Omega}{R}$ With $\Omega$ being the peak frequency and R the decay constant. I know that analytically ...
1
vote
1answer
42 views

Does FFT magnitude of a sound drop to 1/10 of its value if sound level is decreased by 20dB?

I understand decibel = 20 * log (magnitude/reference value). To truly appreciate the meaning of this, if I have a single frequency tone that corresponds to a certain FFT magnitude shown on a PC that's ...
1
vote
0answers
52 views

Scaling issue after doing manipulations in FFT

I have two filters which must apply (in series) to same input data $x[n]$ e.g of length 256 (real time asio input buffers). One filter is e.g. an impulse response $h_1[n]$ of a speaker and other one ...
1
vote
4answers
82 views

Is frequency resolution (“bin size” inverse) always directly proportional to sampling duration (window length)?

I am new to DSP and signal processing in general (digital or analogue). In implementing an FFT/Goertzel I have noticed that the resolution ("bin size" inverse) is directly proportional to the sampling ...
0
votes
0answers
20 views

Using KNN for audio classification based on FFT

I need to classify whether a product sound "good" and "bad" based on FFT of its audio recording. The FFT magnitudes are shown for frequencies from 0 to 7khz, with a frequency resolution of 5 hz, so ...
0
votes
1answer
42 views

For a 20 MHz channel, with 1200 usable subcarriers(18 MHz occupied), what should be the size of the FFT on the transmitter before IFFT is applied?

I am trying to simulate the SC-FDMA transmission and I read H Myung's paper and research on the topic but I am not sure exactly on what should be the size of FFT at the transmitter. For a 20 MHz ...
1
vote
1answer
50 views

Why autocorrelation can be more efficiently calculated using the fft

Can anyone explain why autocorrelation can be more efficiently calculated using the fft ?
0
votes
1answer
48 views

Yet another fft question - a vocoder

Lets assume a pipeline X: ...
0
votes
2answers
113 views

Half Window Functions and Formulas

I am looking at implementing different window functions in an application I am making. I have found the formulas for all major symmetrical windows, however I would like to implement half windows. ...
0
votes
1answer
75 views

Manually creating a lowpass filter from the frequency domain: what phase?

In an attempt to gain a better understanding of DSP, I want to create a very simple (1D) lowpass, or I think more correctly "stop-band" or "band-reject" filter, to filter out a single frequency, e.g., ...
1
vote
2answers
75 views

Is the FFT magnitudes of multiple audio sources additive?

Is the FFT magnitude of two audio signals when played together the sum of their individual FFT magnitudes across frequency bins? Note I'm talking only about the magnitude, ignoring phase. For ...
0
votes
3answers
68 views

Analyzing a signal that contains frequency content at Fs/2 doesn't seem to work unless there is a phase shift

I am trying to write a basic program that samples a 4 kHz sinewave at a sampling rate of 8 kHz and takes the FFT of the signal and plots it. From everything I have read, as long as the signal you are ...
0
votes
0answers
36 views

Discrete vs Continuous Power Spectrum Analysis

Let's suppose we have a time signal of watt units which in the frequency domain transforms into a sinc-like spectrum. The amplitude of that spectrum will likely be also of watt units. In order to find ...
1
vote
1answer
167 views

fft function in R vs spec function from 'seewave' package? They don't give a similar frequency spectra

I understand that spec will give me the frequency and the corresponding amplitude of that component, whereas fft will compute the DFT of the signal and throw the complex numbers for each component ...
0
votes
0answers
66 views

ACF expression using FFT method

It is known that the ACF of a 2D digital image can be obtained by computing the inverse Fourier transform ...
0
votes
1answer
107 views

How can I “smooth” square wave/pulse data to remove/reduce harmonics?

First, I have reviewed close-match questions, but can't find something that seems to match what I'm looking for. Also, it's been 30 years since college, so forgive me for forgetting stuff.. :) I am ...
1
vote
0answers
166 views

SNR computation in frequency domain with scipy.fftpack.fft

I have a noisy time series (gaussian coloured noise) to which I add a signal. I call the sum of noise+signal a segment. In the picture you can see an instance: I want to compute the signal-to-noise ...
0
votes
0answers
37 views

How to remove sum and difference terms while computing frequency from fft?

I am currently operating in vhf band AND trying to detect frequencies using Fast Fourier transform thresholding method. While detection of multiple frequencies , i received spurs(May not appropriate ...
0
votes
3answers
63 views

What's the difference between calculating the FFT of a constant sound for 5 seconds versus every 1 second and taking the average?

I'm interested in learning the frequency spectrum of a constant sound. However, there is background noise. My plan is to record the sound for 1 second, take the FFT, and then doing this 5 times and ...
0
votes
1answer
603 views

FFT and Power Spectrum Normalization

On many websites, including MathWorks, it was suggested to normalize the fft spectrum (MATLAB or numpy) by dividing it by the total number of samples ($N$). For a sinusoidal signal, for example: $$x(...
1
vote
2answers
264 views

Understanding the phase in DFT

Although using regularly the FFT algorithm to compute DFTs, I don't really understand how the phase part works. e.g. in Matlab: ...
1
vote
1answer
211 views

Power and Energy of an Audio file

I have a question about calculating the power and Energy of an audio recording. I have imported a waveform of an audio recording in WAV format into Matlab and then calculated the energy and power in ...