Browse Source

Remove +/-12V clamping of wires

tags/v0.6.1
Andrew Belt 7 years ago
parent
commit
a2a349740e
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      src/engine.cpp

+ 0
- 2
src/engine.cpp View File

@@ -54,8 +54,6 @@ void Light::setBrightnessSmooth(float brightness, float frames) {

void Wire::step() {
float value = outputModule->outputs[outputId].value;
// Assume a +/-12V power supply (like Eurorack), and prevent voltages outside the power range.
value = clamp(value, -12.f, 12.f);
inputModule->inputs[inputId].value = value;
}



Loading…
Cancel
Save