## Hanning window - I/Q signal

Started by in comp.dsp4 years ago 1 reply

Hi everybody, I have implemented Hann windowing function as follows: var N = samples.Length / 2; for (int i = 0; i < samples.Length;...

Hi everybody, I have implemented Hann windowing function as follows: var N = samples.Length / 2; for (int i = 0; i < samples.Length; i++) { samples[i] *= 0.5 - 0.5 * Math.Cos((2 * Math.PI * i) / (N - 1)); } Samples field consists of varying real and imaginary values. When i apply Hann window my signal mirrors every time at negative frequency, ergo the peak shoul

## FFT with TMS320F2812

Started by in comp.dsp12 years ago 3 replies

I use the TI FFT Library and I have two question : First, in the TI example RFFT32_brev(ipcb,ipcb,N); RFFT32_brev(ipcb,ipcb,N);// Input...

I use the TI FFT Library and I have two question : First, in the TI example RFFT32_brev(ipcb,ipcb,N); RFFT32_brev(ipcb,ipcb,N);// Input samples in Real Part fft.win(&fft); RFFT32_brev(ipcb,ipcb,N); RFFT32_brev(ipcb,ipcb,N);// Input after windowing fft.calc(&fft); fft.split(&fft); fft.mag(&fft); There are 4 times "RFFT32_brev(ipcb,ipcb,N); ", I don't know why ? I deleted the last 3 l...

## FFTW Accuracy vs Matlab Accuracy

Started by in comp.dsp13 years ago 12 replies

Hi, i'm using FFTW to computer determine the SNR of a recorded sinusoidal signal. (1khz sinus for 5seconds @ 48khz) I'm experiencing a...

Hi, i'm using FFTW to computer determine the SNR of a recorded sinusoidal signal. (1khz sinus for 5seconds @ 48khz) I'm experiencing a strange behaviour: if i compute the fft with FFTW i obtain really different values from what matlab compute. To be more specific: i compute a real 2 real fft with: ApplyWindow(BLACKMANHARRIS);//

## Regarding Linear prediction analysis.

Started by in comp.dsp13 years ago 3 replies

Hi, I am working on the linear prediction analysis implementation,I have one question which is regrding windowing which is done before LCP,...

Hi, I am working on the linear prediction analysis implementation,I have one question which is regrding windowing which is done before LCP, where we have a frame of size 240 samples i.e 40 samples from past, 80 samples of present frame and 40 samples from future. I am using the linear prediction analysis for decorrelation of signal after acoustic echo cancellation. I can store the 40 sample...

## MATLAB Hamming Window-Applying Multiple Windows to one Signal

Started by in comp.dsp11 years ago 2 replies

I have a question about windowing in MATLAB. So I have a 1 second signal, y1 to which I would like to apply a 24ms hamming window. Within...

I have a question about windowing in MATLAB. So I have a 1 second signal, y1 to which I would like to apply a 24ms hamming window. Within the windowed signal, I want to perform a series of calculations . From what I understand about windows you can simply multiply y1 and the window function to get the windowed signal. I'm curious though is it possible to split that 1 sec signal into many (approx...

## Windowing question

Started by in comp.dsp17 years ago 2 replies

Hi, I noticed this phenomena when using a Hanning window before using FFT of 4096 size. If the data that I put into the FFT is up to about 2048...

Hi, I noticed this phenomena when using a Hanning window before using FFT of 4096 size. If the data that I put into the FFT is up to about 2048 samples, Hanning window reduces the side-lobes as expected. But if I use more data on the FFT such as 4096 samples, the Hanning window actualy add more side-lobes than Rectangular. Is this the way it supposed to work? I used Sound-Forge spectrum anal...

## Sharpening oversampled STFT-based spectrograms

Started by in comp.dsp11 years ago 17 replies

If you made a spectrogram by windowing in the time domain using an infinitely long window (let's go for a Gaussian function) every one sample in...

If you made a spectrogram by windowing in the time domain using an infinitely long window (let's go for a Gaussian function) every one sample in the signal (that is centre your window on each sample and DFT each time), you would obtain a huge and very blurry spectrogram. But this huge blurry image wouldn't be aliased, so the thought occurred to me, since it's oversampled and not aliased, and ...

## How Shifting and Scaling in Continous signals is related to Images

Started by in comp.dsp12 years ago 2 replies

Hello Everybody! I am doing a study of wavelets. I am able to get basic idea of wavelets as how the input signal is multiplied with a scaled...

Hello Everybody! I am doing a study of wavelets. I am able to get basic idea of wavelets as how the input signal is multiplied with a scaled and shifted windowing function.But I am not clear of how the filtering process is carried out for 2-d matrices or images. Can anybody tell me how shifting and scaling of wavelets in continous time signals is related to images. Thanks in advance! Narin...

## Might "spectral leakage" be irrelevant?

Started by in comp.dsp16 years ago 2 replies

In another thread Rick Lyons said: "Windowing is generally used to reduce the spectral leakage that causes a strong (high amplitude) signal's...

In another thread Rick Lyons said: "Windowing is generally used to reduce the spectral leakage that causes a strong (high amplitude) signal's spectral magnitude to cover over (swamp out) the spectral components of nearby weak signals. If a weak signal (in which you're interested) is 3-4 FFT frequency bins away from a strong signal's center frequency, use the Hamming window. If the weak s...

## How spectral leakage changes the phase spectrum?

Started by in comp.dsp12 years ago 9 replies

Hello All, I want to understand how spectral leakage changes the phase spectrum of a sine wave? Also when I apply window...

Hello All, I want to understand how spectral leakage changes the phase spectrum of a sine wave? Also when I apply window (blackman harris 11 Term or chebyshev window with 300db attenuation), I see a significant amount of reduction in spectral leakage in the amplitude part of the spectrum. But this windowing also affects the phase part of the ...

## FFT magnitude for frequency analyzer

Started by in comp.dsp12 years ago 4 replies

Hi there, I'm trying to implement frequency analyzer for audio signal using DFT. Nothing extraordinary, just take e.g. 4096 source samples, apply...

Hi there, I'm trying to implement frequency analyzer for audio signal using DFT. Nothing extraordinary, just take e.g. 4096 source samples, apply windowing, pass through DFT and get magnitude of particular frequency bin via msqrt(msqr(Re) + msqr(Im)) , then maybe some overlapping or whatsoever. Let's say, that source samples are in -1..1. The problem is, even if the source signal is for e...

## Zero padding and the Shannon information content

Started by in comp.dsp13 years ago 10 replies

Hello all, I am confused about how zero-filling / windowing a signal alters its information content and I'm hoping someone here can help. I...

Hello all, I am confused about how zero-filling / windowing a signal alters its information content and I'm hoping someone here can help. I have a continuous signal (time domain) and I Fourier transform it to get a band-limited spectrum (frequency domain). From Shannon & Weaver, I can compute the information content of the time domain signal from the signal variance and, given the linea...

## MATLAB code for Power Spectral Density

Started by in comp.dsp14 years ago 11 replies

Can anyone please check if my code is correct? SINE512 is just a file name. This file has 512 data points and it's a sine wave. Thank...

Can anyone please check if my code is correct? SINE512 is just a file name. This file has 512 data points and it's a sine wave. Thank you!! %Sampling frequency Fs=50000; %# of samples in the data datasize=size(SINE512); numsample=datasize(1); %Windowing H=hann(numsample); W=H.*(SINE512(:,2)); %Fourier Transform FFTX=fft(W,numsample); %Power: magnitude^2 X=FFTX(1:floor(numsamp...

## 2D FFT window function

Started by in comp.dsp11 years ago 3 replies

I have some questions about length of windowing functions applied to 1D and 2D FFT. For a N point 1D FFT, it is very straightforward, I can...

I have some questions about length of windowing functions applied to 1D and 2D FFT. For a N point 1D FFT, it is very straightforward, I can generate a N point window function, and multiply it with the signal before doing FFT. But for N*N point 2D FFT, what length of window function should I use? Should I generate a N*N point window same to the one used in 1D FFT, or a N point window and repeat the...

## equivalent operations in the time-domain & the frequency-domain

Started by in comp.dsp15 years ago 4 replies

Hi all, You know how convolution in the time-domain is the equivalent of multiplication in the frequency-domain, and vice-versa.... can...

Hi all, You know how convolution in the time-domain is the equivalent of multiplication in the frequency-domain, and vice-versa.... can anyone explain to me what would be the frequency-domain equivalent of taking an "inner-product" in the time-domain?? For a signal-detection problem I've had some success with a matched filter, windowing through data and taking time-domain inner-product...

## window and fft

Started by in comp.dsp17 years ago 10 replies

Hi, I have a little problem ... I am working with audio datas, I get the datas block by block. I have to process the datas in the fourier...

Hi, I have a little problem ... I am working with audio datas, I get the datas block by block. I have to process the datas in the fourier domain, for that I windowing a signal block and then I compute the fft, process the block in the fourier domain, compute the ifft and overlap with a previous processed block. The problem is that the processing in the fourier domain modify the signal phas...

## use matlab to do short time fourier transform

Started by in comp.dsp17 years ago 4 replies

Hi all the experts, I would like to use Matlab to do short time fourier transform on a speech signal. May I know how can I use the windowing...

Hi all the experts, I would like to use Matlab to do short time fourier transform on a speech signal. May I know how can I use the windowing function and fft function to do the short time fourier transform? (I know there is a blockset to do that but I'm not allowed to use simlink to do the short time fourier transform. So please help! Thank alot. David

## Positive functions in both their time and frequency representations? (i.e. Gaussian function)

Started by in comp.dsp12 years ago 18 replies

Are there any (windowing) functions out there that are positive in the time domain as well as in the frequency domain? I know the...

Are there any (windowing) functions out there that are positive in the time domain as well as in the frequency domain? I know the Gaussian function is strictly positive in both, the Fourier transform of a Gaussian function being a Gaussian function. But are there any other functions that are stricly positive in both the time and frequency domain? The reason I'm asking this is that I'm look...