dc offset compensation for 2x03
parent
33916acc65
commit
df520dfd2d
2
notes
2
notes
|
@ -40,7 +40,7 @@ TODO {
|
|||
}
|
||||
}
|
||||
|
||||
normalize pulse waves from 2x03
|
||||
- normalize pulse waves from 2x03
|
||||
|
||||
revert-to-saved menu action
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue