diff options
author | Chris Robinson <[email protected]> | 2020-05-08 01:39:48 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-05-08 01:39:48 -0700 |
commit | 12bb5a47cda0ef6ec1ced73ccf5d267a71f9e710 (patch) | |
tree | 41ff9fae008ccc78deb6681296835db0e7d59b81 /common/alcomplex.cpp | |
parent | 48fbad98369861985109764a530bc789e3a72170 (diff) |
Fix the FFT half point for the shifter effects
Diffstat (limited to 'common/alcomplex.cpp')
-rw-r--r-- | common/alcomplex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/alcomplex.cpp b/common/alcomplex.cpp index e5cbe8a0..9f30c716 100644 --- a/common/alcomplex.cpp +++ b/common/alcomplex.cpp @@ -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, |