implement cv mod for Euclidean. Note, this is implemented as an override, not a sum mod.

This commit is contained in:
2025-06-29 20:33:00 -07:00
parent 792758f2a5
commit 17afa9882b
4 changed files with 64 additions and 87 deletions

View File

@ -58,10 +58,16 @@ void loop() {
gravity.Process();
// Read CVs and call the update function for each channel.
int cv1 = gravity.cv1.Read();
int cv2 = gravity.cv2.Read();
for (int i = 0; i < Gravity::OUTPUT_COUNT; i++) {
app.channel[i].applyCvMod(cv1, cv2);
if (!app.editing_param) {
int cv1 = gravity.cv1.Read();
int cv2 = gravity.cv2.Read();
for (int i = 0; i < Gravity::OUTPUT_COUNT; i++) {
// Only apply CV to the channel when the current channel has cv
// mod configured.
if (app.channel[i].isCvModActive()) {
app.channel[i].applyCvMod(cv1, cv2);
}
}
}
// Check for dirty state eligible to be saved.