From 10a846f677a9fa30ac7645a18a57794cc02fe1bd Mon Sep 17 00:00:00 2001 From: eggix <9631813+eggix@users.noreply.github.com> Date: Wed, 21 Oct 2020 16:20:54 +0200 Subject: [PATCH] Extended tracking of Stages in loop mode up to C7 --- src/Stages.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Stages.cpp b/src/Stages.cpp index 91e88c9..6f8d572 100644 --- a/src/Stages.cpp +++ b/src/Stages.cpp @@ -232,7 +232,10 @@ struct Stages : Module { float primaries[NUM_CHANNELS]; float secondaries[NUM_CHANNELS]; for (int i = 0; i < NUM_CHANNELS; i++) { - primaries[i] = clamp(params[LEVEL_PARAMS + i].getValue() + inputs[LEVEL_INPUTS + i].getVoltage() / 8.f, 0.f, 1.f); + if (configurations[i].loop) + primaries[i] = clamp(params[LEVEL_PARAMS + i].getValue() + inputs[LEVEL_INPUTS + i].getVoltage() / 8.f, 0.f, 1.f + 6.f / 8.f); // For tracking up to C7 + else + primaries[i] = clamp(params[LEVEL_PARAMS + i].getValue() + inputs[LEVEL_INPUTS + i].getVoltage() / 8.f, 0.f, 1.f); secondaries[i] = params[SHAPE_PARAMS + i].getValue(); }