Fix the FFT half point for the shifter effects
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user