Fix the FFT half point for the shifter effects

This commit is contained in:
Chris Robinson
2020-05-08 01:39:48 -07:00
parent 48fbad9836
commit 12bb5a47cd
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ void complex_hilbert(const al::span<std::complex<double>> buffer)
const double inverse_size = 1.0/static_cast<double>(buffer.size());
auto bufiter = buffer.begin();
const auto halfiter = bufiter + (buffer.size()>>1);
const auto halfiter = bufiter + (buffer.size()>>1) - 1;
*bufiter *= inverse_size; ++bufiter;
bufiter = std::transform(bufiter, halfiter, bufiter,