complex discrete fourier Transform

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • pmclinn

    complex discrete fourier Transform

    I'm looking for the complex discrete fourier Transform of this EQ
    impulse response array. I know the output for the first 3 values:
    EQ.DFT MAG(floating)) should be 1.066769, 1.040460, 1.063209....
    EQ. DFT MAG(Db) .561411,.344507 ,.532374....
    CH Resp mag(dB) -.608192, .845447,2.01922 0....

    I can for the life me not get this to balance against the returns
    below. Any help would be greatly appreciated?

    Dim real(23) As Double
    Dim img(23) As Double
    real(0) = 0.004395
    real(1) = 0.0
    real(2) = 0.004883
    real(3) = -0.002441
    real(4) = 0.008301
    real(5) = -0.005371
    real(6) = 0.014648
    real(7) = 0.989746
    real(8) = 0.024902
    real(9) = -0.005371
    real(10) = 0.006836
    real(11) = -0.002441
    real(12) = 0.005371
    real(13) = 0.001465
    real(14) = 0.004395
    real(15) = 0.002441
    real(16) = -0.000977
    real(17) = 0.001953
    real(18) = 0.001953
    real(19) = 0.003418
    real(20) = 0.004395
    real(21) = 0.000488
    real(22) = 0.00293
    real(23) = 0.000488



    img(0) = -0.003418 'real(0) = 0.004395
    img(1) = 0.0
    img(2) = -0.004395
    img(3) = 0.007812
    img(4) = -0.01416
    img(5) = 0.021484
    img(6) = -0.057129
    img(7) = 0.0
    img(8) = 0.110352
    img(9) = -0.040039
    img(10) = 0.020996
    img(11) = -0.014648
    img(12) = 0.007812
    img(13) = -0.006348
    img(14) = 0.000977
    img(15) = -0.001465
    img(16) = -0.000488
    img(17) = -0.000488
    img(18) = 0.0
    img(19) = 0.002441
    img(20) = 0.000977
    img(21) = 0.001465
    img(22) = -0.000488
    img(23) = -0.000488
Working...