aboutsummaryrefslogtreecommitdiffstats
path: root/common/alcomplex.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-05-09 16:44:29 -0700
committerChris Robinson <[email protected]>2020-05-09 16:44:29 -0700
commit2fb4ac1621dff45940c40bfdf4d82737bb4e6fc3 (patch)
tree41e68419cbb3a0f8ce9329cc4ac1e18913e6dfd0 /common/alcomplex.cpp
parent52a5dc23a301e49f82139de9ff699662572523ab (diff)
Revert "Fix the FFT half point for the shifter effects"
This reverts commit 12bb5a47cda0ef6ec1ced73ccf5d267a71f9e710.
Diffstat (limited to 'common/alcomplex.cpp')
-rw-r--r--common/alcomplex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/alcomplex.cpp b/common/alcomplex.cpp
index 9f30c716..e5cbe8a0 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) - 1;
+ const auto halfiter = bufiter + (buffer.size()>>1);
*bufiter *= inverse_size; ++bufiter;
bufiter = std::transform(bufiter, halfiter, bufiter,