Skip to content

Commit

Permalink
Merge branch 'stft' of github.com:nihui/ncnn into stft
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed Nov 18, 2024
2 parents 726eba0 + 0c6d8d0 commit 6783c8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layer/spectrogram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ int Spectrogram::forward(const Mat& bottom_blob, Mat& top_blob, const Option& op
// dft
double angle = 2 * M_PI * i * k / n_fft;

re += v * cos(angle);// + imag * sin(angle);
im -= v * sin(angle);// + imag * cos(angle);
re += v * cos(angle); // + imag * sin(angle);
im -= v * sin(angle); // + imag * cos(angle);
}

// fprintf(stderr, "%.2f %.2f %.2f %.2f\n", re, im, magnitude, power);
Expand Down

0 comments on commit 6783c8c

Please sign in to comment.