Introduce basic Euclidean Rhythm #9
@ -58,17 +58,17 @@ void loop() {
|
|||||||
gravity.Process();
|
gravity.Process();
|
||||||
|
|
||||||
// Read CVs and call the update function for each channel.
|
// Read CVs and call the update function for each channel.
|
||||||
if (!app.editing_param) {
|
|
||||||
int cv1 = gravity.cv1.Read();
|
int cv1 = gravity.cv1.Read();
|
||||||
int cv2 = gravity.cv2.Read();
|
int cv2 = gravity.cv2.Read();
|
||||||
|
|
||||||
for (int i = 0; i < Gravity::OUTPUT_COUNT; i++) {
|
for (int i = 0; i < Gravity::OUTPUT_COUNT; i++) {
|
||||||
// Only apply CV to the channel when the current channel has cv
|
// Only apply CV to the channel when the current channel has cv
|
||||||
// mod configured.
|
// mod configured.
|
||||||
if (app.channel[i].isCvModActive()) {
|
bool editing_current_step = app.editing_param && i == app.selected_channel - 1;
|
||||||
|
if (app.channel[i].isCvModActive() && !editing_current_step) {
|
||||||
app.channel[i].applyCvMod(cv1, cv2);
|
app.channel[i].applyCvMod(cv1, cv2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Check for dirty state eligible to be saved.
|
// Check for dirty state eligible to be saved.
|
||||||
stateManager.update(app);
|
stateManager.update(app);
|
||||||
|
|||||||
Reference in New Issue
Block a user