Thank you, Robert! I'll try it. I'll post here if I have a decent results.
A discrete signal in general does not have a single amplitude and a single phase. You need to get familiar with spectral analysis / Fourier analysis.