Browse Source

Normal Warps lvl inputs to 5v; make pots attenuate

This matches the behavior of my hardware Warps as well as the
description of level inputs in the manual
pull/107/head
Bryan Head 4 years ago
parent
commit
d132599fd5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Warps.cpp

+ 2
- 2
src/Warps.cpp View File

@@ -63,8 +63,8 @@ struct Warps : Module {
if (++frame >= 60) {
frame = 0;

p->channel_drive[0] = clamp(params[LEVEL1_PARAM].getValue() + inputs[LEVEL1_INPUT].getVoltage() / 5.0f, 0.0f, 1.0f);
p->channel_drive[1] = clamp(params[LEVEL2_PARAM].getValue() + inputs[LEVEL2_INPUT].getVoltage() / 5.0f, 0.0f, 1.0f);
p->channel_drive[0] = clamp(params[LEVEL1_PARAM].getValue() * inputs[LEVEL1_INPUT].getNormalVoltage(5.0f) / 5.0f, 0.0f, 1.0f);
p->channel_drive[1] = clamp(params[LEVEL2_PARAM].getValue() * inputs[LEVEL2_INPUT].getNormalVoltage(5.0f) / 5.0f, 0.0f, 1.0f);
p->modulation_algorithm = clamp(params[ALGORITHM_PARAM].getValue() / 8.0f + inputs[ALGORITHM_INPUT].getVoltage() / 5.0f, 0.0f, 1.0f);

{


Loading…
Cancel
Save