mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 14:30:34 +00:00
use only 50% of the suffix for windowing
This commit is contained in:
parent
1987562651
commit
826992a2d0
1 changed files with 2 additions and 0 deletions
|
|
@ -55,6 +55,8 @@ struct Encoder
|
|||
tdom[i] /= std::sqrt(value(8*symbol_len));
|
||||
for (int i = 0; i < guard_len; ++i) {
|
||||
value x = value(i) / value(guard_len - 1);
|
||||
value ratio(0.5);
|
||||
x = std::min(x, ratio) / ratio;
|
||||
x = value(0.5) * (value(1) - std::cos(DSP::Const<value>::Pi() * x));
|
||||
guard[i] = DSP::lerp(guard[i], tdom[i+symbol_len-guard_len], x);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue