Changeset 2fde783 for src


Ignore:
Timestamp:
Oct 11, 2009, 12:37:01 PM (15 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
8979752
Parents:
76fc277
Message:

src/spectral/fft.c: do not zero phase for no good reason, use ATAN2 macro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/spectral/fft.c

    r76fc277 r2fde783  
    186186    spectrum->phas[i][0] = 0.;
    187187    for (j=1; j < spectrum->length - 1; j++) {
    188       if (compspec->data[i][j] == 0.) spectrum->phas[i][j] = 0;
    189       else
    190       spectrum->phas[i][j] = atan2f(compspec->data[i][compspec->length-j],
     188      spectrum->phas[i][j] = ATAN2(compspec->data[i][compspec->length-j],
    191189          compspec->data[i][j]);
    192190    }
Note: See TracChangeset for help on using the changeset viewer.