stpt.m File Reference

Go to the source code of this file.

Functions

Synth Windw Norm while (pin< pend)%Until the end...%---Analysis x_w
 
fftbuffer, [0,-(M-1 circshift ()
 
fftbuffer, N fft ()
 
1:N/2-1 Xmag ()
 
Save mag values plot_peaks (Xmag, Xphase, ploc, t)
 
 Transposition (fx)%ploc
 
Harmonics mapping (fx) Xmag(ploc)
 
Add the mag maxs Xphase (ploc)
 
1i.*Xphase exp ()
 
Generate posit freq Y (N/2+2:N)
 
1:M w_out ()
 
id H ()
 

Variables

function y
 
Window size pin =0
 
Start pointer pend =length(x)-M
 
Inicial output npeaks =0
 
Number of peaks w =w./sum(w)
 
Analy Windw Norm w_out =hanning(M)'
 
Windowing signal fftbuffer =[x_w, zeros(1,N-M)]
 
FFT Xmag =20*log10(abs(X(1:N/2+1)))
 
Magnitude in dBs Xphase =unwrap(angle(X(1:N/2+1)))
 
 pphase =Xphase(ploc)
 
Save phase values pmag =Xmag(ploc)
 
Modifying Xphase ploc =round(ploc.*0.96)
 
Generate negat freq fftbuffer_out =real(ifft(Y))
 

Function Documentation

fftbuffer,[0,-(M-1 circshift ( )
virtual
fftbuffer,N fft ( )
virtual
id H ( )
virtual
Save mag values plot_peaks ( Xmag  ,
Xphase  ,
ploc  ,
t   
)
Transposition ( fx  )
1:M w_out ( )
virtual
1:N/2-1 Xmag ( )
virtual
Add the mag maxs Xphase ( ploc  )
Generate posit freq Y ( N/2+2:N  )

Variable Documentation

Windowing signal fftbuffer =[x_w, zeros(1,N-M)]

Definition at line 13 of file stpt.m.

Clean the signal fftbuffer_out =real(ifft(Y))

Definition at line 33 of file stpt.m.

Find the local max npeaks =0

Definition at line 6 of file stpt.m.

Start pointer pend =length(x)-M

Definition at line 4 of file stpt.m.

Window size pin =0

Definition at line 3 of file stpt.m.

Modifying Xphase ploc =round(ploc.*0.96)

Definition at line 26 of file stpt.m.

Save phase values pmag =Xmag(ploc)

Definition at line 22 of file stpt.m.

pphase =Xphase(ploc)

Definition at line 21 of file stpt.m.

Number of peaks w =w./sum(w)

Definition at line 7 of file stpt.m.

Synthesis window w_out =hanning(M)'

Definition at line 8 of file stpt.m.

Plotting peaks Xmag =20*log10(abs(X(1:N/2+1)))

Definition at line 16 of file stpt.m.

Modifying Xmag Xphase =unwrap(angle(X(1:N/2+1)))

Definition at line 17 of file stpt.m.

End pointer y
Initial value:
= stpt(x,w,N,H,t)
id H()
#define M(a, b)
Definition: vp3dsp.c:43
#define N
Definition: vf_pp7.c:200
Number of peaks w
Definition: stpt.m:7
Discrete Time axis x
t
Definition: genspecsines3.m:6
const char int length
Definition: avisynth_c.h:668

Definition at line 1 of file stpt.m.