refactor when we recalculate pulses.

This commit is contained in:
2025-09-01 08:41:47 -07:00
parent acd028846c
commit b39f7a0bbc
2 changed files with 37 additions and 41 deletions

View File

@ -89,6 +89,11 @@ void loop() {
// Check if cv run or reset is active and read cv.
CheckRunReset(gravity.cv1, gravity.cv2);
// Process clock pulses.
for (int i = 0; i < Gravity::OUTPUT_COUNT; i++) {
app.channel[i].recalculatePulses();
}
// Check for dirty state eligible to be saved.
stateManager.update(app);
@ -281,6 +286,7 @@ void HandleRotate(int val) {
void HandlePressedRotate(int val) {
updateSelection(app.selected_channel, val, Gravity::OUTPUT_COUNT + 1);
app.selected_param = 0;
app.editing_param = false;
stateManager.markDirty();
app.refresh_screen = true;
}