dc offset compensation for 2x03

master
zetaPRIME 2022-03-20 07:35:23 -04:00
parent 33916acc65
commit df520dfd2d
2 changed files with 2 additions and 2 deletions

2
notes
View File

@ -40,7 +40,7 @@ TODO {
}
}
normalize pulse waves from 2x03
- normalize pulse waves from 2x03
revert-to-saved menu action

View File

@ -74,7 +74,7 @@ namespace {
if (std::fmod(phase, 1.0) >= duty) d = -1.0;
d += polyblep(std::fmod(phase, 1.0), delta);
d -= polyblep(std::fmod(phase + (1.0 - duty), 1.0), delta);
return d;
return d - (duty-0.5)*2; // DC offset compensation
}
[[gnu::optimize("O3")]] double oscTri(double phase) {