diff options
author | Chris Robinson <[email protected]> | 2022-10-26 09:21:13 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-10-26 09:21:13 -0700 |
commit | 72de556c6b4c5f5f121a107633aa00cda024748b (patch) | |
tree | d1d0cc4523059f80b0fd427109ab5186ae0f26dd | |
parent | 46f02764324ece9a23aa9cce9f2e294c414adc9f (diff) |
Fix up a comment
-rw-r--r-- | core/uhjfilter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/uhjfilter.cpp b/core/uhjfilter.cpp index 3624e53e..7298a9fc 100644 --- a/core/uhjfilter.cpp +++ b/core/uhjfilter.cpp @@ -216,9 +216,9 @@ void UhjEncoderIIR::encode(float *LeftOut, float *RightOut, allpass1_process_rev({mWX.data()+1, SamplesToDo+sFilterDelay-1}, mRevTemp.data()); allpass2_process(mFilterWX, {mRevTemp.data(), SamplesToDo}, SamplesToDo, mD.data()); - /* D = 0.6554516*Y + j(-0.3420201*W + 0.5098604*X) */ + /* D = j(-0.3420201*W + 0.5098604*X) + 0.6554516*Y */ for(size_t i{0};i < SamplesToDo;++i) - mD[i] = 0.6554516f*mY[i] + mD[i]; + mD[i] = mD[i] + 0.6554516f*mY[i]; /* Copy the future samples to the front for next time. */ std::copy(mW.cbegin()+SamplesToDo, mW.cbegin()+SamplesToDo+sFilterDelay, mW.begin()); |