Forums

reconstruct phase-shifted sine tone

Started by iosman123 3 weeks ago8 replieslatest reply 3 weeks ago95 views

Hello,

I am trying an example matlab code for reconstructing a sine-tone using window OLA, using a Hanning window (periodic). Sampling frequency is 8kHz and the tone frequency is 20 hz (just for a trial). It is working as expected and I can get the sine-tone out using OLA. Now, I would like to get the phase-shifted sine tone (say by pi/2) using OLA. For this, I am multiplying the windowed frame by exp(-j pi/2) before OLA operation. I am somehow loosing the phase continuity and my output is all over the place. Any thoughts ? I believe, I am missing something fundamental here..

note: fft and frame size are 128, shift is 64.


thanks

iosman

[ - ]
Reply by jbrowerAugust 4, 2019

Iosman-

If you shift your already-windowed data in time, you will put the tapered window edges somewhere in the middle of the FFT frame, and create new edges (not tapered).  The FFT will see those as wideband noise ... might make your results look bad :-)

Try phase shifting prior to windowing.

-Jeff

[ - ]
Reply by fred_harrisAugust 4, 2019

here is a paper that guides you to the phase continuity reconstruction


Using the FFT as an Arbitrary Function Generator, harris & Lowdermilk

Abstract:The inverse fast Fourier transform (IFFT) forms a time series from its spectral description. The time data formed by the IFFT represents a single cycle of a periodic waveform which can be accessed periodically to form an arbitrary length version of the signal. This property is similar to the periodic memory access used by arbitrary function generators. A sequence of windowed, overlapped IFFTs can be used to seamlessly extend the time series to obtain any arbitrary non-periodic time series. This option is not available from traditional arbitrary function generators.

Published in: IEEE Autotestcon, 2005.


I tried copying the file to this email... not successfully...you can download from ieee xplore or email fjharris@ucsd.edu and I can send you my copy.


fred 


[ - ]
Reply by fred_harrisAugust 4, 2019

Post deleted by author

[ - ]
Reply by fred_harrisAugust 4, 2019

try this version

autotestcon_2005.doc


fred h

[ - ]
Reply by neiroberAugust 4, 2019

Note cost of the paper is $33.00 for non-IEEE members.

[ - ]
Reply by fred_harrisAugust 4, 2019

Absurd isn't it? that's why i located my manuscript and added it my last reply...

(and why I offered to send a copy in response to a request)


fred


[ - ]
Reply by neiroberAugust 4, 2019

Hi fred,

Thanks for being so helpful!

[ - ]
Reply by fred_harrisAugust 4, 2019

my pleasure!

hope the ideas are useful to you.


fred