fix scope triggering

This commit is contained in:
2026-01-15 23:51:51 -06:00
parent b160c8ae69
commit bb392c4d9d
4 changed files with 24 additions and 12 deletions

View File

@@ -125,6 +125,7 @@ float Voice::process(float* params, bool& scopeTrigger) {
// state tracking, may keep this here even if oscillators store their own phase because it might help with scope triggering
phase_ += phaseInc;
if (phase_ > 2.0f * M_PI) {
scopeTrigger = true;
phase_ -= 2.0f * M_PI;
}