Advertisement
gimo

Untitled

Nov 22nd, 2017
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. alpha = 1/2 //Scaling
  2. x <- 1024 samples
  3. w <- hann(1024)
  4. xwin <- x.w
  5. X <- DFT(xwin)
  6. for i = 0 to 1024
  7. Y[i] <- X[round(i*alpha)]
  8. YPhase[i] <- Y* exp(i*phi[i])
  9. endfor
  10. y = IDFT(YPhase)
  11. out <- y[n].(w[n]/w[α^-1*n])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement