Browse Source

Set Branches threshold input range from 0V to 10V, instead of 0 to 1V

tags/v0.6.0
Andrew Belt 7 years ago
parent
commit
85b174a8f4
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/Branches.cpp

+ 2
- 1
src/Branches.cpp View File

@@ -62,7 +62,8 @@ void Branches::step() {
if (gateTrigger[i].process(gate)) {
// trigger
float r = randomf();
bool toss = (r < params[THRESHOLD1_PARAM + i].value + inputs[P1_INPUT + i].value);
float threshold = clamp(params[THRESHOLD1_PARAM + i].value + inputs[P1_INPUT + i].value / 10.f, 0.f, 1.f);
bool toss = (r < threshold);
if (!mode[i]) {
// direct mode
outcome[i] = toss;


Loading…
Cancel
Save