Browse Source

Extended tracking of Stages in loop mode up to C7

pull/101/head
eggix 4 years ago
parent
commit
10a846f677
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/Stages.cpp

+ 4
- 1
src/Stages.cpp View File

@@ -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();
}



Loading…
Cancel
Save