add analog cv input mod

This commit is contained in:
2025-06-10 22:39:19 -07:00
parent 70b9b28032
commit ca82ba38c5
2 changed files with 107 additions and 35 deletions

View File

@ -86,6 +86,13 @@ void loop() {
// Process change in state of inputs and outputs.
gravity.Process();
// NEW: Read CVs and call the main-loop-safe update function for each channel.
int cv1 = gravity.cv1.Read();
int cv2 = gravity.cv2.Read();
for (int i = 0; i < OUTPUT_COUNT; i++) {
app.channel[i].updateFinalValues(cv1, cv2);
}
if (app.refresh_screen) {
UpdateDisplay();
}